From 84f0e24c63bf677d99c4eb9ef950c13370ffdc5b Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 17 Nov 2020 09:33:07 +0100 Subject: [PATCH] chore: change build process to use local and server the same (#955) * initital ide * init * it is alive * go test is running * wip with buildkit * it definitly alive * all done, now the github actions * pretty * before i delete the generated proto stub * delete generated code * mount of grpc does not yet work * save before * level of insanity 1000% * huhur * gh action new dockerfile * fix * fix * fix * fix * amd64 only * try caching * try with reg * test with artifact upload * trial * add comments * publish branchname * correct vars * correct id * mode max for cache * remove unused code * cleanup * test action which uploads coverage * use * proper path * debug file location * path * test if ci still works * correct docker file name --- .dockerignore | 16 + .github/dependabot.yml | 2 +- .github/scripts/githelper.sh | 54 - .github/scripts/variables.env | 21 - .github/workflows/codecov.yml | 40 + .github/workflows/release.yml | 147 +- .gitignore | 5 +- .releaserc.js | 8 +- CONTRIBUTING.md | 4 + README.md | 1 - build/README.md | 60 + build/console/generate-grpc.sh | 32 +- build/docker-compose-debug.yml | 30 + build/docker-compose-dev.yml | 31 + build/docker/.dockerignore | 5 - build/docker/Dockerfile | 14 - build/dockerfile | 127 + build/zitadel/generate-grpc.sh | 65 + console/package.json | 3 +- pkg/grpc/admin/admin.pb.authoptions.go | 246 - pkg/grpc/admin/admin.pb.go | 10411 -------- pkg/grpc/admin/admin.pb.gw.go | 4236 ---- pkg/grpc/admin/admin.pb.validate.go | 6095 ----- pkg/grpc/admin/admin.swagger.json | 3007 --- pkg/grpc/auth/auth.pb.authoptions.go | 161 - pkg/grpc/auth/auth.pb.go | 6862 ------ pkg/grpc/auth/auth.pb.gw.go | 2485 -- pkg/grpc/auth/auth.pb.validate.go | 3844 --- pkg/grpc/auth/auth.swagger.json | 1935 -- .../management/management.pb.authoptions.go | 721 - pkg/grpc/management/management.pb.go | 19924 ---------------- pkg/grpc/management/management.pb.gw.go | 14948 ------------ pkg/grpc/management/management.pb.validate.go | 15562 ------------ pkg/grpc/management/management.swagger.json | 9082 ------- pkg/grpc/message/message.pb.go | 232 - 35 files changed, 420 insertions(+), 99996 deletions(-) create mode 100644 .dockerignore delete mode 100755 .github/scripts/githelper.sh delete mode 100644 .github/scripts/variables.env create mode 100644 .github/workflows/codecov.yml create mode 100644 build/README.md create mode 100644 build/docker-compose-debug.yml create mode 100644 build/docker-compose-dev.yml delete mode 100644 build/docker/.dockerignore delete mode 100644 build/docker/Dockerfile create mode 100644 build/dockerfile create mode 100755 build/zitadel/generate-grpc.sh delete mode 100644 pkg/grpc/admin/admin.pb.authoptions.go delete mode 100644 pkg/grpc/admin/admin.pb.go delete mode 100644 pkg/grpc/admin/admin.pb.gw.go delete mode 100644 pkg/grpc/admin/admin.pb.validate.go delete mode 100644 pkg/grpc/admin/admin.swagger.json delete mode 100644 pkg/grpc/auth/auth.pb.authoptions.go delete mode 100644 pkg/grpc/auth/auth.pb.go delete mode 100644 pkg/grpc/auth/auth.pb.gw.go delete mode 100644 pkg/grpc/auth/auth.pb.validate.go delete mode 100644 pkg/grpc/auth/auth.swagger.json delete mode 100644 pkg/grpc/management/management.pb.authoptions.go delete mode 100644 pkg/grpc/management/management.pb.go delete mode 100644 pkg/grpc/management/management.pb.gw.go delete mode 100644 pkg/grpc/management/management.pb.validate.go delete mode 100644 pkg/grpc/management/management.swagger.json delete mode 100644 pkg/grpc/message/message.pb.go diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..94f47b8baf --- /dev/null +++ b/.dockerignore @@ -0,0 +1,16 @@ +.git +.codecov +.github +build/dockerfile +site +console/node_modules +console/src/app/proto/generated +console/tmp +.releaserc.js +.typo-ci.yml +CONTRIBUTING.md +LICENSE +README.md +SECURITY.md +pkg/grpc/*/*.pb.* +pkg/grpc/*/*.swagger.json \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 1852336e71..35500edd3b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,7 +17,7 @@ updates: prefix: chore include: scope - package-ecosystem: "docker" - directory: "/build/docker" + directory: "/build/" schedule: interval: "weekly" open-pull-requests-limit: 10 diff --git a/.github/scripts/githelper.sh b/.github/scripts/githelper.sh deleted file mode 100755 index 26524949d4..0000000000 --- a/.github/scripts/githelper.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash -#debugger -set -x - -source ./.github/scripts/variables.env - -############################ -function setup_git { -############################ - echo "###############" - echo "set git config" - echo "###############" - - git config --global user.email "$GIT_USER_MAIL" - git config --global user.name "$GIT_USER_NAME" -} - -############################ -function checkout_project { -############################ - echo "###############" - echo "clone repository $GIT_URL" - echo "###############" - - # clone opsrepo - git clone $GIT_URL $LOCAL_TMP_DIR/$GIT_OPSREPO -} - -############################ -function change_image_version { -############################ - echo "###############" - echo "checkout master" - echo "###############" - - cd $LOCAL_TMP_DIR/$GIT_OPSREPO/$GIT_OPSREPO_APPFOLDER/$GIT_OPSREPO_APPLICATION_NAME/overlay/$TARGET_ENVIRONMENT - git checkout master - git pull - echo "###############" - echo "change image version and commit" - echo "###############" - sed -i "s#image: $REGISTRY_IMAGE:.*#image: $REGISTRY_IMAGE:$CAOS_NEXT_VERSION#g" $GIT_OPSREPO_IMAGEFILE - git add $GIT_OPSREPO_IMAGEFILE - git commit --message "Github Workflow: $GITHUB_WORKFLOW" -} - -############################ -function upload_files { -############################ - echo "###############" - echo "git push" - echo "###############" - git push --quiet --set-upstream origin -} diff --git a/.github/scripts/variables.env b/.github/scripts/variables.env deleted file mode 100644 index 8f496a7c8f..0000000000 --- a/.github/scripts/variables.env +++ /dev/null @@ -1,21 +0,0 @@ -### local vars -export LOCAL_TMP_DIR="/tmp" - -### git settings for cloning operations repository -export GIT_USER_MAIL="hi@caos.ch" -export GIT_USER_NAME="zitadel-pipeline" - -#path of opsrepository -export GIT_URL="https://$GIT_OPSREPO_DEPLOYTOKEN@github.com/caos/zitadel-ops.git" -export GIT_OPSREPO="citadel-ops" - -### application settings -export GIT_OPSREPO_APPFOLDER="k8s/workload" -export GIT_OPSREPO_APPLICATION_NAME="zitadel" -export GIT_OPSREPO_IMAGEFILE="imageversion.yaml" -export REGISTRY_IMAGE="$REGISTRY/$GITHUB_REPOSITORY/$IMAGE" - -### environment settings -#export TARGET_ENVIRONMENT="dev" - - diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000000..d1cebdcb4d --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,40 @@ +name: Code Coverage +on: push + +env: + REGISTRY: ghcr.io + NODE_VERSION: '12' + GO_VERSION: '1.15' + +jobs: + container: + runs-on: ubuntu-18.04 + steps: + - name: Source checkout + uses: actions/checkout@v2 + - name: Cache Docker layers + uses: actions/cache@v2 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - uses: docker/build-push-action@v2 + with: + context: . + file: ./build/dockerfile + platforms: linux/amd64 + tags: ${{ env.REGISTRY }}/${{ github.repository }}:coverage + push: false + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,mode=max,dest=/tmp/.buildx-cache + target: go-codecov + outputs: type=local,dest=. + - uses: codecov/codecov-action@v1 + with: + file: ./profile.cov + name: codecov-go \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b86d756754..97ea80b345 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,128 +8,49 @@ env: GO_VERSION: '1.15' jobs: - - ## Angular test, will be added later - - angular-lint: + container: runs-on: ubuntu-18.04 - defaults: - run: - working-directory: ./console - steps: - - uses: actions/checkout@v2 - - name: Install Protoc - uses: arduino/setup-protoc@master - with: - version: '3.x' - - run: wget -O protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.2.0/protoc-gen-grpc-web-1.2.0-linux-x86_64 - - run: sudo mv protoc-gen-grpc-web /usr/local/bin/protoc-gen-grpc-web - - run: sudo chmod +x /usr/local/bin/protoc-gen-grpc-web - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: ${{ env.NODE_VERSION }} - - run: npm ci - - run: npm run lint - - angular-build: - runs-on: ubuntu-18.04 - defaults: - run: - working-directory: ./console - steps: - - uses: actions/checkout@v2 - - name: Install Protoc - uses: arduino/setup-protoc@master - with: - version: '3.x' - - run: wget -O protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.2.0/protoc-gen-grpc-web-1.2.0-linux-x86_64 - - run: sudo mv protoc-gen-grpc-web /usr/local/bin/protoc-gen-grpc-web - - run: sudo chmod +x /usr/local/bin/protoc-gen-grpc-web - - uses: actions/setup-node@v1 - with: - node-version: ${{ env.NODE_VERSION }} - - run: npm ci - - run: npm run prodbuild - - uses: actions/upload-artifact@v1 - with: - name: angular - path: console/dist/console - - go-test: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta - with: - go-version: ${{ env.GO_VERSION }} - - run: go test -race -v -coverprofile=profile.cov ./... - - uses: actions/upload-artifact@v1 - with: - name: go-coverage - path: profile.cov - - uses: codecov/codecov-action@v1 - with: - file: ./profile.cov - name: codecov-go - - ## go lint, will be added later - - go-build: - runs-on: ubuntu-18.04 - needs: [angular-build, angular-lint, go-test] ### We need the artifact from the angular build and that's why we wait here - name: Build ${{ matrix.goos }}-${{ matrix.goarch }} - strategy: - matrix: - goos: [ 'linux', 'darwin', 'windows' ] - goarch: ['amd64'] - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2-beta - with: - go-version: ${{ env.GO_VERSION }} - - uses: actions/download-artifact@v2 - with: - name: angular - path: console/dist/console - - run: go get github.com/rakyll/statik - - run: ./build/console/generate-static.sh - - run: cat internal/ui/console/statik/statik.go - - run: ./build/login/generate-static.sh - - run: cat internal/ui/login/statik/statik.go - - run: ./build/notification/generate-static.sh - - run: cat internal/notification/statik/statik.go - - run: ./build/zitadel/generate-static.sh - - run: cat internal/statik/statik.go - - run: CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o zitadel-${{ matrix.goos }}-${{ matrix.goarch }} cmd/zitadel/main.go - - uses: actions/upload-artifact@v1 - with: - name: zitadel-${{ matrix.goos }}-${{ matrix.goarch }} - path: zitadel-${{ matrix.goos }}-${{ matrix.goarch }} - - container-prod: - runs-on: ubuntu-18.04 - needs: go-build steps: - name: Source checkout uses: actions/checkout@v2 - - uses: actions/download-artifact@v2 + - name: Set output + id: branch + run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} + - name: Check output + run: echo ${{ steps.branch.outputs.short_ref }} + - name: Generate Short SHA Container Tag + id: vars + run: echo "::set-output name=sha_short::SHA-$(git rev-parse --short HEAD)" + - name: Cache Docker layers + uses: actions/cache@v2 with: - name: zitadel-linux-amd64 - path: .artifacts - - uses: docker/build-push-action@v1 + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + uses: docker/login-action@v1 with: - dockerfile: build/docker/Dockerfile username: ${{ github.actor }} password: ${{ secrets.CR_PAT }} registry: ${{ env.REGISTRY }} - repository: ${{ github.repository }} - tag_with_ref: true - tag_with_sha: true + - uses: docker/build-push-action@v2 + with: + context: . + file: ./build/dockerfile + platforms: linux/amd64 + tags: ${{ env.REGISTRY }}/${{ github.repository }}:${{ steps.vars.outputs.sha_short }},${{ env.REGISTRY }}/${{ github.repository }}:${{ steps.branch.outputs.short_ref }} + push: true + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,mode=max,dest=/tmp/.buildx-cache release: runs-on: ubuntu-18.04 - needs: [container-prod] + needs: [container] env: DOCKER_USERNAME: ${{ github.actor }} DOCKER_PASSWORD: ${{ secrets.CR_PAT }} @@ -139,12 +60,6 @@ jobs: - name: Generate Short SHA Container Tag id: vars run: echo "::set-output name=sha_short::SHA-$(git rev-parse --short HEAD)" - - uses: actions/download-artifact@v2 - with: - path: .artifacts - - name: Display structure of downloaded files - run: ls -R - working-directory: .artifacts - name: Docker Login run: docker login $REGISTRY -u $GITHUB_ACTOR -p $GITHUB_TOKEN - name: Docker Pull short-sha diff --git a/.gitignore b/.gitignore index 4b64bce23b..308614e2b8 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,7 @@ cmd/zitadel/zitadel # buildfolders and generated js tmp/ -console/src/app/proto/generated/ \ No newline at end of file +console/src/app/proto/generated/ + +pkg/grpc/*/*.pb.* +pkg/grpc/*/*.swagger.json \ No newline at end of file diff --git a/.releaserc.js b/.releaserc.js index 51683a3d09..5c80756feb 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -3,13 +3,7 @@ module.exports = { plugins: [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - ["@semantic-release/github", { - "assets": [ - {"path": ".artifacts/zitadel-darwin-amd64/zitadel-darwin-amd64", "label": "Darwin x86_64"}, - {"path": ".artifacts/zitadel-linux-amd64/zitadel-linux-amd64", "label": "Linux x86_64"}, - {"path": ".artifacts/zitadel-windows-amd64/zitadel-windows-amd64", "label": "Windows x86_64"} - ] - }], + "@semantic-release/github", ["@semantic-release/exec", { "publishCmd": "echo '::set-env name=CAOS_NEXT_VERSION::${nextRelease.version}'" }], diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9dec141324..0fb0399dc7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,10 @@ ## **Did you find a bug?** +## **Want to contribute code?** + +* Check out our [Dev Build Guide](build/README.md). + ## **Did you find a security flaw?** * Please read [Security Policy](SECURITY.md). diff --git a/README.md b/README.md index 0ee9e3f1eb..0ae1a4b649 100644 --- a/README.md +++ b/README.md @@ -60,4 +60,3 @@ See the policy [here](./SECURITY.md) See the exact licensing terms [here](./LICENSE) 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. - diff --git a/build/README.md b/build/README.md new file mode 100644 index 0000000000..4116250a63 --- /dev/null +++ b/build/README.md @@ -0,0 +1,60 @@ + +# Development + +## Prerequisite + +- Buildkit compatible docker installation + +## Generate Proto Clients + +### Angular + +This command generates the grpc stub for angular into the folder console/src/app/proto/generated for local development + +```Bash +DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target npm-copy -o console/src/app/proto/generated +``` + +### Go + +With this command you can generate the stub for golang into the correct dir pkg/ + +```Bash +DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --target go-copy -o pkg +``` + +## Run + +### Run Angular + +```Bash +COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build angular +``` + +### Run Go + +```Bash +COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-dev.yml up --build go +``` + +### Fullstack including database + +```Bash +COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose.yml up --build +``` + +## Debug + +### Debug Go + +```Bash +COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f build/docker-compose-debug.yml up --build go +``` + +## Production Build + +This can also be run locally! + +```Bash +DOCKER_BUILDKIT=1 docker build -f build/dockerfile . -t zitadel:local --build-arg ENV=prod +``` diff --git a/build/console/generate-grpc.sh b/build/console/generate-grpc.sh index 3c43dcef61..12e7d30270 100755 --- a/build/console/generate-grpc.sh +++ b/build/console/generate-grpc.sh @@ -4,38 +4,24 @@ set -eux GEN_PATH=src/app/proto/generated -echo "Remove old files" -rm -rf $GEN_PATH - echo "Create folders" mkdir -p $GEN_PATH -targetcurl () { - mkdir -p $1 && cd $1 && { curl -O $2; cd -; } -} - -echo "Download additional protofiles" -targetcurl tmp/validate https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.4.0/validate/validate.proto -targetcurl tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/annotations.proto -targetcurl tmp/protoc-gen-swagger/options https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/openapiv2.proto - echo "Generate grpc" protoc \ - -I=/usr/local/include \ - -I=../pkg/grpc/message \ - -I=../pkg/grpc/management/proto \ - -I=../pkg/grpc/auth/proto \ - -I=../pkg/grpc/admin/proto \ - -I=../internal/protoc/protoc-gen-authoption \ + -I=.tmp/protos/message \ + -I=.tmp/protos/admin/proto \ + -I=.tmp/protos/management/proto \ + -I=.tmp/protos/auth/proto \ -I=node_modules/google-proto-files \ - -I=tmp \ + -I=.tmp/protos \ --js_out=import_style=commonjs,binary:$GEN_PATH \ --grpc-web_out=import_style=commonjs+dts,mode=grpcweb:$GEN_PATH \ - ../pkg/grpc/message/proto/*.proto \ - ../pkg/grpc/management/proto/*.proto \ - ../pkg/grpc/admin/proto/*.proto \ - ../pkg/grpc/auth/proto/*.proto + .tmp/protos/message/proto/*.proto \ + .tmp/protos/admin/proto/*.proto \ + .tmp/protos/auth/proto/*.proto \ + .tmp/protos/management/proto/*.proto echo "Generate annotations js file (compatibility)" diff --git a/build/docker-compose-debug.yml b/build/docker-compose-debug.yml new file mode 100644 index 0000000000..8447bd1b83 --- /dev/null +++ b/build/docker-compose-debug.yml @@ -0,0 +1,30 @@ +version: "3.8" + +services: + angular: + build: + context: .. + dockerfile: build/Dockerfile + target: dev-angular-build + args: + ENV: dev + command: sh -c "ng serve --host 0.0.0.0" + ports: + - 4200:4200 + go: + build: + context: .. + dockerfile: build/Dockerfile + target: dev-go-build + args: + ENV: dev + command: dlv --listen=:2345 --headless=true --log=true --log-output=debugger,debuglineerr,gdbwire,lldbout,rpc --accept-multiclient --api-version=2 debug cmd/zitadel/main.go + ports: + - 2345:2345 + - 50000:50000 + db: + image: cockroachdb/cockroach:v20.2.0 + command: start-single-node --insecure + ports: + - 8080:8080 + - 26257:26257 \ No newline at end of file diff --git a/build/docker-compose-dev.yml b/build/docker-compose-dev.yml new file mode 100644 index 0000000000..9dc4d46642 --- /dev/null +++ b/build/docker-compose-dev.yml @@ -0,0 +1,31 @@ +version: "3.8" + +services: + angular: + build: + context: .. + dockerfile: build/Dockerfile + target: dev-angular-build + args: + ENV: dev + command: sh -c "ng serve --host 0.0.0.0" + ports: + - 4200:4200 + go: + build: + context: .. + dockerfile: build/Dockerfile + target: dev-go-build + args: + ENV: dev + command: go run cmd/zitadel/main.go + ports: + - 50000:50000 + db: + image: cockroachdb/cockroach:v20.2.0 + command: start-single-node --insecure + ports: + - 8080:8080 + - 26257:26257 + volumes: + - "../cockroach-data/zitadel1:/cockroach/cockroach-data" \ No newline at end of file diff --git a/build/docker/.dockerignore b/build/docker/.dockerignore deleted file mode 100644 index 6280833767..0000000000 --- a/build/docker/.dockerignore +++ /dev/null @@ -1,5 +0,0 @@ -# Exclude system dirs - -.dependabot -.github -.git \ No newline at end of file diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile deleted file mode 100644 index a617a13455..0000000000 --- a/build/docker/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -# This Stage prepares the user in the container and copies the files -FROM alpine:latest as prepare -RUN adduser -D zitadel -COPY .artifacts/zitadel-linux-amd64 /zitadel -COPY cmd/zitadel/*.yaml / -RUN chmod a+x /zitadel - -# This Stage is intended as production image -FROM scratch as final -COPY --from=prepare /etc/passwd /etc/passwd -COPY --from=prepare / / -USER zitadel -HEALTHCHECK NONE -ENTRYPOINT ["/zitadel"] diff --git a/build/dockerfile b/build/dockerfile new file mode 100644 index 0000000000..6e341895ef --- /dev/null +++ b/build/dockerfile @@ -0,0 +1,127 @@ +####################### +## By default we build the prod enviroment +ARG ENV=prod + +####################### +## This step downloads the protofiles, protoc and protoc-gen-grpc-web for later use +####################### +FROM alpine as base +RUN apk add tar curl +WORKDIR /.tmp +RUN wget -O protoc https://github.com/protocolbuffers/protobuf/releases/download/v3.13.0/protoc-3.13.0-linux-x86_64.zip \ + && unzip protoc \ + && wget -O bin/protoc-gen-grpc-web https://github.com/grpc/grpc-web/releases/download/1.2.0/protoc-gen-grpc-web-1.2.0-linux-x86_64 \ + && chmod +x bin/protoc-gen-grpc-web +RUN curl https://raw.githubusercontent.com/envoyproxy/protoc-gen-validate/v0.4.0/validate/validate.proto --create-dirs -o validate/validate.proto \ + && curl https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/annotations.proto --create-dirs -o protoc-gen-swagger/options/annotations.proto \ + && curl https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/v1.14.6/protoc-gen-swagger/options/openapiv2.proto --create-dirs -o protoc-gen-swagger/options/openapiv2.proto \ + && curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto --create-dirs -o google/api/annotations.proto \ + && curl https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto --create-dirs -o google/api/http.proto \ + && curl https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/empty.proto --create-dirs -o google/protobuf/empty.proto \ + && curl https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/timestamp.proto --create-dirs -o google/protobuf/timestamp.proto \ + && curl https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/descriptor.proto --create-dirs -o google/protobuf/descriptor.proto \ + && curl https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/duration.proto --create-dirs -o google/protobuf/duration.proto \ + && curl https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/any.proto --create-dirs -o google/protobuf/any.proto \ + && curl https://raw.githubusercontent.com/protocolbuffers/protobuf/master/src/google/protobuf/struct.proto --create-dirs -o google/protobuf/struct.proto + +COPY pkg/grpc/admin/proto/admin.proto admin/proto/admin.proto +COPY pkg/grpc/auth/proto/auth.proto auth/proto/auth.proto +COPY pkg/grpc/management/proto/management.proto management/proto/management.proto +COPY pkg/grpc/message/proto/message.proto message/proto/message.proto +COPY internal/protoc/protoc-gen-authoption/authoption/options.proto authoption/options.proto + +####################### +## With this step we prepare all node_modules, this helps caching the build +## Speed up this step by mounting your local node_modules directory +####################### +FROM node:12 as npm-base +WORKDIR console +COPY console/package.json console/package-lock.json ./ +RUN npm install \ + && mkdir .tmp +COPY console . +COPY --from=base /.tmp/bin /usr/local/bin/ +COPY --from=base /.tmp .tmp/protos/ +COPY build/console build/console/ +RUN build/console/generate-grpc.sh + +FROM scratch as npm-copy +COPY --from=npm-base /console/src/app/proto/generated . + +## anular dev build +FROM npm-base as dev-angular-build +RUN npm install -g @angular/cli + +## anular prod build +FROM npm-base as prod-angular-build +RUN npm run prodbuild + +####################### +## Go base build +## Speed up this step by mounting your local go mod pkg directory +####################### +FROM golang:1.15 as go-base +WORKDIR src/github.com/caos/zitadel/ +COPY go.mod go.sum ./ +RUN go mod download +COPY --from=base /.tmp .tmp/protos/ +COPY --from=base /.tmp/bin /usr/local/bin/ +COPY internal/protoc/protoc-base internal/protoc/protoc-base/ +COPY internal/protoc/protoc-gen-authoption internal/protoc/protoc-gen-authoption/ + +RUN go install \ + github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \ + github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \ + github.com/golang/protobuf/protoc-gen-go \ + github.com/envoyproxy/protoc-gen-validate + +RUN go get -u github.com/go-bindata/go-bindata/... + +RUN go-bindata ./internal/protoc/protoc-gen-authoption/templates \ + && go install ./internal/protoc/protoc-gen-authoption + +COPY build/zitadel build/zitadel/ +RUN build/zitadel/generate-grpc.sh + +FROM scratch as go-copy +COPY --from=go-base /go/src/github.com/caos/zitadel/pkg/ . + +## Go test +FROM go-base as go-test +COPY . . +RUN go test -race -v -coverprofile=profile.cov ./... + +## Go test +FROM scratch as go-codecov +COPY --from=go-test /go/src/github.com/caos/zitadel/profile.cov profile.cov + +## Go prod build +FROM go-test as prod-go-build +COPY --from=prod-angular-build console/dist/console console/dist/console/ +RUN go get github.com/rakyll/statik \ + && ./build/console/generate-static.sh \ + && ./build/login/generate-static.sh \ + && ./build/notification/generate-static.sh \ + && ./build/zitadel/generate-static.sh +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o zitadel-linux-amd64 cmd/zitadel/main.go + +## Go dev build +FROM go-base as dev-go-build +RUN go get github.com/go-delve/delve/cmd/dlv + +####################### +## Final Production Image +####################### +FROM ${ENV}-go-build as artifact +RUN useradd zitadel +COPY cmd/zitadel/*.yaml app/ +RUN chmod a+x zitadel-linux-amd64 +RUN mv zitadel-linux-amd64 app/zitadel + +## Scratch Image +FROM scratch as final +COPY --from=artifact /etc/passwd /etc/passwd +COPY --from=artifact /go/src/github.com/caos/zitadel/app app/ +USER zitadel +HEALTHCHECK NONE +ENTRYPOINT ["/app/zitadel"] \ No newline at end of file diff --git a/build/zitadel/generate-grpc.sh b/build/zitadel/generate-grpc.sh new file mode 100755 index 0000000000..79cd1edb1f --- /dev/null +++ b/build/zitadel/generate-grpc.sh @@ -0,0 +1,65 @@ +#! /bin/sh + +set -eux + +echo "Generate grpc" + +protoc \ + -I=.tmp/protos/message \ + -I=.tmp/protos/admin/proto \ + -I=.tmp/protos/management/proto \ + -I=.tmp/protos/auth/proto \ + -I=.tmp/protos \ + -I=${GOPATH}/src \ + --go_out=plugins=grpc:$GOPATH/src \ + .tmp/protos/message/proto/message.proto + +protoc \ + -I=.tmp/protos/message \ + -I=.tmp/protos/admin/proto \ + -I=.tmp/protos/management/proto \ + -I=.tmp/protos/auth/proto \ + -I=.tmp/protos \ + -I=${GOPATH}/src \ + --go_out=plugins=grpc:$GOPATH/src \ + --grpc-gateway_out=logtostderr=true:$GOPATH/src \ + --swagger_out=logtostderr=true:. \ + --authoption_out=. \ + --validate_out=lang=go:${GOPATH}/src \ + .tmp/protos/admin/proto/admin.proto + +mv admin* $GOPATH/src/github.com/caos/zitadel/pkg/grpc/admin/ + +protoc \ + -I=.tmp/protos/message \ + -I=.tmp/protos/admin/proto \ + -I=.tmp/protos/management/proto \ + -I=.tmp/protos/auth/proto \ + -I=.tmp/protos \ + -I=${GOPATH}/src \ + --go_out=plugins=grpc:$GOPATH/src \ + --grpc-gateway_out=logtostderr=true,allow_delete_body=true:${GOPATH}/src \ + --swagger_out=logtostderr=true,allow_delete_body=true:. \ + --authoption_out=. \ + --validate_out=lang=go:${GOPATH}/src \ + .tmp/protos/management/proto/management.proto + +mv management* $GOPATH/src/github.com/caos/zitadel/pkg/grpc/management/ + +protoc \ + -I=.tmp/protos/message \ + -I=.tmp/protos/admin/proto \ + -I=.tmp/protos/management/proto \ + -I=.tmp/protos/auth/proto \ + -I=.tmp/protos \ + -I=${GOPATH}/src \ + --go_out=plugins=grpc:$GOPATH/src \ + --grpc-gateway_out=logtostderr=true:$GOPATH/src \ + --swagger_out=logtostderr=true:. \ + --authoption_out=. \ + --validate_out=lang=go:${GOPATH}/src \ + .tmp/protos/auth/proto/auth.proto + +mv auth* $GOPATH/src/github.com/caos/zitadel/pkg/grpc/auth/ + +echo "done generating" diff --git a/console/package.json b/console/package.json index cc3f65d124..06eeef625e 100644 --- a/console/package.json +++ b/console/package.json @@ -6,8 +6,7 @@ "start": "ng serve", "build": "ng build", "prodbuild": "ng build --prod", - "lint": "ng lint && stylelint './src/**/*.scss' --syntax scss", - "postinstall": "../build/console/generate-grpc.sh" + "lint": "ng lint && stylelint './src/**/*.scss' --syntax scss" }, "private": true, "dependencies": { diff --git a/pkg/grpc/admin/admin.pb.authoptions.go b/pkg/grpc/admin/admin.pb.authoptions.go deleted file mode 100644 index 046eda275e..0000000000 --- a/pkg/grpc/admin/admin.pb.authoptions.go +++ /dev/null @@ -1,246 +0,0 @@ -// Code generated by protoc-gen-authmethod. DO NOT EDIT. - -package admin - -import ( - "github.com/caos/zitadel/internal/api/authz" -) - -/** - * AdminService - */ - -const AdminService_MethodPrefix = "caos.zitadel.admin.api.v1.AdminService" - -var AdminService_AuthMethods = authz.MethodMapping{ - - "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique": authz.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID": authz.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs": authz.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg": authz.Option{ - Permission: "iam.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultOrgIamPolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultOrgIamPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveOrgIamPolicy": authz.Option{ - Permission: "iam.policy.delete", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles": authz.Option{ - Permission: "iam.member.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/AddIamMember": authz.Option{ - Permission: "iam.member.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember": authz.Option{ - Permission: "iam.member.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember": authz.Option{ - Permission: "iam.member.delete", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers": authz.Option{ - Permission: "iam.member.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetViews": authz.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/ClearView": authz.Option{ - Permission: "iam.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents": authz.Option{ - Permission: "iam.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent": authz.Option{ - Permission: "iam.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/IdpByID": authz.Option{ - Permission: "iam.idp.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/CreateOidcIdp": authz.Option{ - Permission: "iam.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateIdpConfig": authz.Option{ - Permission: "iam.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/DeactivateIdpConfig": authz.Option{ - Permission: "iam.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/ReactivateIdpConfig": authz.Option{ - Permission: "iam.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveIdpConfig": authz.Option{ - Permission: "iam.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateOidcIdpConfig": authz.Option{ - Permission: "iam.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/SearchIdps": authz.Option{ - Permission: "iam.idp.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLabelPolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultLabelPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicyIdpProviders": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/AddIdpProviderToDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveIdpProviderFromDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicySecondFactors": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/AddSecondFactorToDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveSecondFactorFromDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicyMultiFactors": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/AddMultiFactorToDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/RemoveMultiFactorFromDefaultLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordComplexityPolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordComplexityPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordAgePolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordAgePolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordLockoutPolicy": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordLockoutPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, -} diff --git a/pkg/grpc/admin/admin.pb.go b/pkg/grpc/admin/admin.pb.go deleted file mode 100644 index f09219c206..0000000000 --- a/pkg/grpc/admin/admin.pb.go +++ /dev/null @@ -1,10411 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.11.3 -// source: admin.proto - -package admin - -import ( - context "context" - _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type OrgState int32 - -const ( - OrgState_ORGSTATE_UNSPECIFIED OrgState = 0 - OrgState_ORGSTATE_ACTIVE OrgState = 1 - OrgState_ORGSTATE_INACTIVE OrgState = 2 -) - -// Enum value maps for OrgState. -var ( - OrgState_name = map[int32]string{ - 0: "ORGSTATE_UNSPECIFIED", - 1: "ORGSTATE_ACTIVE", - 2: "ORGSTATE_INACTIVE", - } - OrgState_value = map[string]int32{ - "ORGSTATE_UNSPECIFIED": 0, - "ORGSTATE_ACTIVE": 1, - "ORGSTATE_INACTIVE": 2, - } -) - -func (x OrgState) Enum() *OrgState { - p := new(OrgState) - *p = x - return p -} - -func (x OrgState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgState) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[0].Descriptor() -} - -func (OrgState) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[0] -} - -func (x OrgState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgState.Descriptor instead. -func (OrgState) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{0} -} - -type OrgSearchKey int32 - -const ( - OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED OrgSearchKey = 0 - OrgSearchKey_ORGSEARCHKEY_NAME OrgSearchKey = 1 - OrgSearchKey_ORGSEARCHKEY_DOMAIN OrgSearchKey = 2 - OrgSearchKey_ORGSEARCHKEY_STATE OrgSearchKey = 3 -) - -// Enum value maps for OrgSearchKey. -var ( - OrgSearchKey_name = map[int32]string{ - 0: "ORGSEARCHKEY_UNSPECIFIED", - 1: "ORGSEARCHKEY_NAME", - 2: "ORGSEARCHKEY_DOMAIN", - 3: "ORGSEARCHKEY_STATE", - } - OrgSearchKey_value = map[string]int32{ - "ORGSEARCHKEY_UNSPECIFIED": 0, - "ORGSEARCHKEY_NAME": 1, - "ORGSEARCHKEY_DOMAIN": 2, - "ORGSEARCHKEY_STATE": 3, - } -) - -func (x OrgSearchKey) Enum() *OrgSearchKey { - p := new(OrgSearchKey) - *p = x - return p -} - -func (x OrgSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[1].Descriptor() -} - -func (OrgSearchKey) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[1] -} - -func (x OrgSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgSearchKey.Descriptor instead. -func (OrgSearchKey) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{1} -} - -type OrgSearchMethod int32 - -const ( - OrgSearchMethod_ORGSEARCHMETHOD_EQUALS OrgSearchMethod = 0 - OrgSearchMethod_ORGSEARCHMETHOD_STARTS_WITH OrgSearchMethod = 1 - OrgSearchMethod_ORGSEARCHMETHOD_CONTAINS OrgSearchMethod = 2 -) - -// Enum value maps for OrgSearchMethod. -var ( - OrgSearchMethod_name = map[int32]string{ - 0: "ORGSEARCHMETHOD_EQUALS", - 1: "ORGSEARCHMETHOD_STARTS_WITH", - 2: "ORGSEARCHMETHOD_CONTAINS", - } - OrgSearchMethod_value = map[string]int32{ - "ORGSEARCHMETHOD_EQUALS": 0, - "ORGSEARCHMETHOD_STARTS_WITH": 1, - "ORGSEARCHMETHOD_CONTAINS": 2, - } -) - -func (x OrgSearchMethod) Enum() *OrgSearchMethod { - p := new(OrgSearchMethod) - *p = x - return p -} - -func (x OrgSearchMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OrgSearchMethod) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[2].Descriptor() -} - -func (OrgSearchMethod) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[2] -} - -func (x OrgSearchMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OrgSearchMethod.Descriptor instead. -func (OrgSearchMethod) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{2} -} - -type UserState int32 - -const ( - UserState_USERSTATE_UNSPECIFIED UserState = 0 - UserState_USERSTATE_ACTIVE UserState = 1 - UserState_USERSTATE_INACTIVE UserState = 2 - UserState_USERSTATE_DELETED UserState = 3 - UserState_USERSTATE_LOCKED UserState = 4 - UserState_USERSTATE_SUSPEND UserState = 5 - UserState_USERSTATE_INITIAL UserState = 6 -) - -// Enum value maps for UserState. -var ( - UserState_name = map[int32]string{ - 0: "USERSTATE_UNSPECIFIED", - 1: "USERSTATE_ACTIVE", - 2: "USERSTATE_INACTIVE", - 3: "USERSTATE_DELETED", - 4: "USERSTATE_LOCKED", - 5: "USERSTATE_SUSPEND", - 6: "USERSTATE_INITIAL", - } - UserState_value = map[string]int32{ - "USERSTATE_UNSPECIFIED": 0, - "USERSTATE_ACTIVE": 1, - "USERSTATE_INACTIVE": 2, - "USERSTATE_DELETED": 3, - "USERSTATE_LOCKED": 4, - "USERSTATE_SUSPEND": 5, - "USERSTATE_INITIAL": 6, - } -) - -func (x UserState) Enum() *UserState { - p := new(UserState) - *p = x - return p -} - -func (x UserState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserState) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[3].Descriptor() -} - -func (UserState) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[3] -} - -func (x UserState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserState.Descriptor instead. -func (UserState) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{3} -} - -type Gender int32 - -const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 -) - -// Enum value maps for Gender. -var ( - Gender_name = map[int32]string{ - 0: "GENDER_UNSPECIFIED", - 1: "GENDER_FEMALE", - 2: "GENDER_MALE", - 3: "GENDER_DIVERSE", - } - Gender_value = map[string]int32{ - "GENDER_UNSPECIFIED": 0, - "GENDER_FEMALE": 1, - "GENDER_MALE": 2, - "GENDER_DIVERSE": 3, - } -) - -func (x Gender) Enum() *Gender { - p := new(Gender) - *p = x - return p -} - -func (x Gender) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Gender) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[4].Descriptor() -} - -func (Gender) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[4] -} - -func (x Gender) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Gender.Descriptor instead. -func (Gender) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{4} -} - -type MachineKeyType int32 - -const ( - MachineKeyType_MACHINEKEY_UNSPECIFIED MachineKeyType = 0 - MachineKeyType_MACHINEKEY_JSON MachineKeyType = 1 -) - -// Enum value maps for MachineKeyType. -var ( - MachineKeyType_name = map[int32]string{ - 0: "MACHINEKEY_UNSPECIFIED", - 1: "MACHINEKEY_JSON", - } - MachineKeyType_value = map[string]int32{ - "MACHINEKEY_UNSPECIFIED": 0, - "MACHINEKEY_JSON": 1, - } -) - -func (x MachineKeyType) Enum() *MachineKeyType { - p := new(MachineKeyType) - *p = x - return p -} - -func (x MachineKeyType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MachineKeyType) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[5].Descriptor() -} - -func (MachineKeyType) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[5] -} - -func (x MachineKeyType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MachineKeyType.Descriptor instead. -func (MachineKeyType) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{5} -} - -type IamMemberSearchKey int32 - -const ( - IamMemberSearchKey_IAMMEMBERSEARCHKEY_UNSPECIFIED IamMemberSearchKey = 0 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_FIRST_NAME IamMemberSearchKey = 1 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_LAST_NAME IamMemberSearchKey = 2 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_EMAIL IamMemberSearchKey = 3 - IamMemberSearchKey_IAMMEMBERSEARCHKEY_USER_ID IamMemberSearchKey = 4 -) - -// Enum value maps for IamMemberSearchKey. -var ( - IamMemberSearchKey_name = map[int32]string{ - 0: "IAMMEMBERSEARCHKEY_UNSPECIFIED", - 1: "IAMMEMBERSEARCHKEY_FIRST_NAME", - 2: "IAMMEMBERSEARCHKEY_LAST_NAME", - 3: "IAMMEMBERSEARCHKEY_EMAIL", - 4: "IAMMEMBERSEARCHKEY_USER_ID", - } - IamMemberSearchKey_value = map[string]int32{ - "IAMMEMBERSEARCHKEY_UNSPECIFIED": 0, - "IAMMEMBERSEARCHKEY_FIRST_NAME": 1, - "IAMMEMBERSEARCHKEY_LAST_NAME": 2, - "IAMMEMBERSEARCHKEY_EMAIL": 3, - "IAMMEMBERSEARCHKEY_USER_ID": 4, - } -) - -func (x IamMemberSearchKey) Enum() *IamMemberSearchKey { - p := new(IamMemberSearchKey) - *p = x - return p -} - -func (x IamMemberSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IamMemberSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[6].Descriptor() -} - -func (IamMemberSearchKey) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[6] -} - -func (x IamMemberSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IamMemberSearchKey.Descriptor instead. -func (IamMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{6} -} - -type SearchMethod int32 - -const ( - SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 - SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 - SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 - SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 - SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 - SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 - SearchMethod_SEARCHMETHOD_NOT_EQUALS SearchMethod = 6 - SearchMethod_SEARCHMETHOD_GREATER_THAN SearchMethod = 7 - SearchMethod_SEARCHMETHOD_LESS_THAN SearchMethod = 8 - SearchMethod_SEARCHMETHOD_IS_ONE_OF SearchMethod = 9 - SearchMethod_SEARCHMETHOD_LIST_CONTAINS SearchMethod = 10 -) - -// Enum value maps for SearchMethod. -var ( - SearchMethod_name = map[int32]string{ - 0: "SEARCHMETHOD_EQUALS", - 1: "SEARCHMETHOD_STARTS_WITH", - 2: "SEARCHMETHOD_CONTAINS", - 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", - 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - 6: "SEARCHMETHOD_NOT_EQUALS", - 7: "SEARCHMETHOD_GREATER_THAN", - 8: "SEARCHMETHOD_LESS_THAN", - 9: "SEARCHMETHOD_IS_ONE_OF", - 10: "SEARCHMETHOD_LIST_CONTAINS", - } - SearchMethod_value = map[string]int32{ - "SEARCHMETHOD_EQUALS": 0, - "SEARCHMETHOD_STARTS_WITH": 1, - "SEARCHMETHOD_CONTAINS": 2, - "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, - "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, - "SEARCHMETHOD_NOT_EQUALS": 6, - "SEARCHMETHOD_GREATER_THAN": 7, - "SEARCHMETHOD_LESS_THAN": 8, - "SEARCHMETHOD_IS_ONE_OF": 9, - "SEARCHMETHOD_LIST_CONTAINS": 10, - } -) - -func (x SearchMethod) Enum() *SearchMethod { - p := new(SearchMethod) - *p = x - return p -} - -func (x SearchMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SearchMethod) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[7].Descriptor() -} - -func (SearchMethod) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[7] -} - -func (x SearchMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SearchMethod.Descriptor instead. -func (SearchMethod) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{7} -} - -type IdpStylingType int32 - -const ( - IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED IdpStylingType = 0 - IdpStylingType_IDPSTYLINGTYPE_GOOGLE IdpStylingType = 1 -) - -// Enum value maps for IdpStylingType. -var ( - IdpStylingType_name = map[int32]string{ - 0: "IDPSTYLINGTYPE_UNSPECIFIED", - 1: "IDPSTYLINGTYPE_GOOGLE", - } - IdpStylingType_value = map[string]int32{ - "IDPSTYLINGTYPE_UNSPECIFIED": 0, - "IDPSTYLINGTYPE_GOOGLE": 1, - } -) - -func (x IdpStylingType) Enum() *IdpStylingType { - p := new(IdpStylingType) - *p = x - return p -} - -func (x IdpStylingType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IdpStylingType) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[8].Descriptor() -} - -func (IdpStylingType) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[8] -} - -func (x IdpStylingType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IdpStylingType.Descriptor instead. -func (IdpStylingType) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{8} -} - -type IdpState int32 - -const ( - IdpState_IDPCONFIGSTATE_UNSPECIFIED IdpState = 0 - IdpState_IDPCONFIGSTATE_ACTIVE IdpState = 1 - IdpState_IDPCONFIGSTATE_INACTIVE IdpState = 2 -) - -// Enum value maps for IdpState. -var ( - IdpState_name = map[int32]string{ - 0: "IDPCONFIGSTATE_UNSPECIFIED", - 1: "IDPCONFIGSTATE_ACTIVE", - 2: "IDPCONFIGSTATE_INACTIVE", - } - IdpState_value = map[string]int32{ - "IDPCONFIGSTATE_UNSPECIFIED": 0, - "IDPCONFIGSTATE_ACTIVE": 1, - "IDPCONFIGSTATE_INACTIVE": 2, - } -) - -func (x IdpState) Enum() *IdpState { - p := new(IdpState) - *p = x - return p -} - -func (x IdpState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IdpState) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[9].Descriptor() -} - -func (IdpState) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[9] -} - -func (x IdpState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IdpState.Descriptor instead. -func (IdpState) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{9} -} - -type OIDCMappingField int32 - -const ( - OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED OIDCMappingField = 0 - OIDCMappingField_OIDCMAPPINGFIELD_PREFERRED_USERNAME OIDCMappingField = 1 - OIDCMappingField_OIDCMAPPINGFIELD_EMAIL OIDCMappingField = 2 -) - -// Enum value maps for OIDCMappingField. -var ( - OIDCMappingField_name = map[int32]string{ - 0: "OIDCMAPPINGFIELD_UNSPECIFIED", - 1: "OIDCMAPPINGFIELD_PREFERRED_USERNAME", - 2: "OIDCMAPPINGFIELD_EMAIL", - } - OIDCMappingField_value = map[string]int32{ - "OIDCMAPPINGFIELD_UNSPECIFIED": 0, - "OIDCMAPPINGFIELD_PREFERRED_USERNAME": 1, - "OIDCMAPPINGFIELD_EMAIL": 2, - } -) - -func (x OIDCMappingField) Enum() *OIDCMappingField { - p := new(OIDCMappingField) - *p = x - return p -} - -func (x OIDCMappingField) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OIDCMappingField) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[10].Descriptor() -} - -func (OIDCMappingField) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[10] -} - -func (x OIDCMappingField) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OIDCMappingField.Descriptor instead. -func (OIDCMappingField) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{10} -} - -type IdpSearchKey int32 - -const ( - IdpSearchKey_IDPSEARCHKEY_UNSPECIFIED IdpSearchKey = 0 - IdpSearchKey_IDPSEARCHKEY_IDP_CONFIG_ID IdpSearchKey = 1 - IdpSearchKey_IDPSEARCHKEY_NAME IdpSearchKey = 2 -) - -// Enum value maps for IdpSearchKey. -var ( - IdpSearchKey_name = map[int32]string{ - 0: "IDPSEARCHKEY_UNSPECIFIED", - 1: "IDPSEARCHKEY_IDP_CONFIG_ID", - 2: "IDPSEARCHKEY_NAME", - } - IdpSearchKey_value = map[string]int32{ - "IDPSEARCHKEY_UNSPECIFIED": 0, - "IDPSEARCHKEY_IDP_CONFIG_ID": 1, - "IDPSEARCHKEY_NAME": 2, - } -) - -func (x IdpSearchKey) Enum() *IdpSearchKey { - p := new(IdpSearchKey) - *p = x - return p -} - -func (x IdpSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IdpSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[11].Descriptor() -} - -func (IdpSearchKey) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[11] -} - -func (x IdpSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IdpSearchKey.Descriptor instead. -func (IdpSearchKey) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{11} -} - -type IdpType int32 - -const ( - IdpType_IDPTYPE_UNSPECIFIED IdpType = 0 - IdpType_IDPTYPE_OIDC IdpType = 1 - IdpType_IDPTYPE_SAML IdpType = 2 -) - -// Enum value maps for IdpType. -var ( - IdpType_name = map[int32]string{ - 0: "IDPTYPE_UNSPECIFIED", - 1: "IDPTYPE_OIDC", - 2: "IDPTYPE_SAML", - } - IdpType_value = map[string]int32{ - "IDPTYPE_UNSPECIFIED": 0, - "IDPTYPE_OIDC": 1, - "IDPTYPE_SAML": 2, - } -) - -func (x IdpType) Enum() *IdpType { - p := new(IdpType) - *p = x - return p -} - -func (x IdpType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (IdpType) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[12].Descriptor() -} - -func (IdpType) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[12] -} - -func (x IdpType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use IdpType.Descriptor instead. -func (IdpType) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{12} -} - -type SecondFactorType int32 - -const ( - SecondFactorType_SECONDFACTORTYPE_UNSPECIFIED SecondFactorType = 0 - SecondFactorType_SECONDFACTORTYPE_OTP SecondFactorType = 1 - SecondFactorType_SECONDFACTORTYPE_U2F SecondFactorType = 2 -) - -// Enum value maps for SecondFactorType. -var ( - SecondFactorType_name = map[int32]string{ - 0: "SECONDFACTORTYPE_UNSPECIFIED", - 1: "SECONDFACTORTYPE_OTP", - 2: "SECONDFACTORTYPE_U2F", - } - SecondFactorType_value = map[string]int32{ - "SECONDFACTORTYPE_UNSPECIFIED": 0, - "SECONDFACTORTYPE_OTP": 1, - "SECONDFACTORTYPE_U2F": 2, - } -) - -func (x SecondFactorType) Enum() *SecondFactorType { - p := new(SecondFactorType) - *p = x - return p -} - -func (x SecondFactorType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SecondFactorType) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[13].Descriptor() -} - -func (SecondFactorType) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[13] -} - -func (x SecondFactorType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SecondFactorType.Descriptor instead. -func (SecondFactorType) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{13} -} - -type MultiFactorType int32 - -const ( - MultiFactorType_MULTIFACTORTYPE_UNSPECIFIED MultiFactorType = 0 - MultiFactorType_MULTIFACTORTYPE_U2F_WITH_PIN MultiFactorType = 1 -) - -// Enum value maps for MultiFactorType. -var ( - MultiFactorType_name = map[int32]string{ - 0: "MULTIFACTORTYPE_UNSPECIFIED", - 1: "MULTIFACTORTYPE_U2F_WITH_PIN", - } - MultiFactorType_value = map[string]int32{ - "MULTIFACTORTYPE_UNSPECIFIED": 0, - "MULTIFACTORTYPE_U2F_WITH_PIN": 1, - } -) - -func (x MultiFactorType) Enum() *MultiFactorType { - p := new(MultiFactorType) - *p = x - return p -} - -func (x MultiFactorType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MultiFactorType) Descriptor() protoreflect.EnumDescriptor { - return file_admin_proto_enumTypes[14].Descriptor() -} - -func (MultiFactorType) Type() protoreflect.EnumType { - return &file_admin_proto_enumTypes[14] -} - -func (x MultiFactorType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MultiFactorType.Descriptor instead. -func (MultiFactorType) EnumDescriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{14} -} - -type OrgID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *OrgID) Reset() { - *x = OrgID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgID) ProtoMessage() {} - -func (x *OrgID) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgID.ProtoReflect.Descriptor instead. -func (*OrgID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{0} -} - -func (x *OrgID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type UniqueOrgRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *UniqueOrgRequest) Reset() { - *x = UniqueOrgRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UniqueOrgRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UniqueOrgRequest) ProtoMessage() {} - -func (x *UniqueOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UniqueOrgRequest.ProtoReflect.Descriptor instead. -func (*UniqueOrgRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{1} -} - -func (x *UniqueOrgRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UniqueOrgRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type UniqueOrgResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"` -} - -func (x *UniqueOrgResponse) Reset() { - *x = UniqueOrgResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UniqueOrgResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UniqueOrgResponse) ProtoMessage() {} - -func (x *UniqueOrgResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UniqueOrgResponse.ProtoReflect.Descriptor instead. -func (*UniqueOrgResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{2} -} - -func (x *UniqueOrgResponse) GetIsUnique() bool { - if x != nil { - return x.IsUnique - } - return false -} - -type Org struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.OrgState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *Org) Reset() { - *x = Org{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Org) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Org) ProtoMessage() {} - -func (x *Org) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Org.ProtoReflect.Descriptor instead. -func (*Org) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{3} -} - -func (x *Org) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Org) GetState() OrgState { - if x != nil { - return x.State - } - return OrgState_ORGSTATE_UNSPECIFIED -} - -func (x *Org) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *Org) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Org) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Org) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type OrgSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - SortingColumn OrgSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*OrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *OrgSearchRequest) Reset() { - *x = OrgSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSearchRequest) ProtoMessage() {} - -func (x *OrgSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgSearchRequest.ProtoReflect.Descriptor instead. -func (*OrgSearchRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{4} -} - -func (x *OrgSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgSearchRequest) GetSortingColumn() OrgSearchKey { - if x != nil { - return x.SortingColumn - } - return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED -} - -func (x *OrgSearchRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -func (x *OrgSearchRequest) GetQueries() []*OrgSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type OrgSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key OrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchKey" json:"key,omitempty"` - Method OrgSearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.OrgSearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *OrgSearchQuery) Reset() { - *x = OrgSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSearchQuery) ProtoMessage() {} - -func (x *OrgSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgSearchQuery.ProtoReflect.Descriptor instead. -func (*OrgSearchQuery) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{5} -} - -func (x *OrgSearchQuery) GetKey() OrgSearchKey { - if x != nil { - return x.Key - } - return OrgSearchKey_ORGSEARCHKEY_UNSPECIFIED -} - -func (x *OrgSearchQuery) GetMethod() OrgSearchMethod { - if x != nil { - return x.Method - } - return OrgSearchMethod_ORGSEARCHMETHOD_EQUALS -} - -func (x *OrgSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type OrgSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*Org `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *OrgSearchResponse) Reset() { - *x = OrgSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSearchResponse) ProtoMessage() {} - -func (x *OrgSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgSearchResponse.ProtoReflect.Descriptor instead. -func (*OrgSearchResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{6} -} - -func (x *OrgSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *OrgSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *OrgSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *OrgSearchResponse) GetResult() []*Org { - if x != nil { - return x.Result - } - return nil -} - -func (x *OrgSearchResponse) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *OrgSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type OrgSetUpRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Org *CreateOrgRequest `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` - User *CreateUserRequest `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *OrgSetUpRequest) Reset() { - *x = OrgSetUpRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSetUpRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSetUpRequest) ProtoMessage() {} - -func (x *OrgSetUpRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgSetUpRequest.ProtoReflect.Descriptor instead. -func (*OrgSetUpRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{7} -} - -func (x *OrgSetUpRequest) GetOrg() *CreateOrgRequest { - if x != nil { - return x.Org - } - return nil -} - -func (x *OrgSetUpRequest) GetUser() *CreateUserRequest { - if x != nil { - return x.User - } - return nil -} - -type OrgSetUpResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Org *Org `protobuf:"bytes,1,opt,name=org,proto3" json:"org,omitempty"` - User *UserResponse `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` -} - -func (x *OrgSetUpResponse) Reset() { - *x = OrgSetUpResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgSetUpResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgSetUpResponse) ProtoMessage() {} - -func (x *OrgSetUpResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgSetUpResponse.ProtoReflect.Descriptor instead. -func (*OrgSetUpResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{8} -} - -func (x *OrgSetUpResponse) GetOrg() *Org { - if x != nil { - return x.Org - } - return nil -} - -func (x *OrgSetUpResponse) GetUser() *UserResponse { - if x != nil { - return x.User - } - return nil -} - -type CreateUserRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - // Types that are assignable to User: - // *CreateUserRequest_Human - // *CreateUserRequest_Machine - User isCreateUserRequest_User `protobuf_oneof:"user"` -} - -func (x *CreateUserRequest) Reset() { - *x = CreateUserRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateUserRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserRequest) ProtoMessage() {} - -func (x *CreateUserRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead. -func (*CreateUserRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{9} -} - -func (x *CreateUserRequest) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (m *CreateUserRequest) GetUser() isCreateUserRequest_User { - if m != nil { - return m.User - } - return nil -} - -func (x *CreateUserRequest) GetHuman() *CreateHumanRequest { - if x, ok := x.GetUser().(*CreateUserRequest_Human); ok { - return x.Human - } - return nil -} - -func (x *CreateUserRequest) GetMachine() *CreateMachineRequest { - if x, ok := x.GetUser().(*CreateUserRequest_Machine); ok { - return x.Machine - } - return nil -} - -type isCreateUserRequest_User interface { - isCreateUserRequest_User() -} - -type CreateUserRequest_Human struct { - Human *CreateHumanRequest `protobuf:"bytes,2,opt,name=human,proto3,oneof"` -} - -type CreateUserRequest_Machine struct { - Machine *CreateMachineRequest `protobuf:"bytes,3,opt,name=machine,proto3,oneof"` -} - -func (*CreateUserRequest_Human) isCreateUserRequest_User() {} - -func (*CreateUserRequest_Machine) isCreateUserRequest_User() {} - -type CreateHumanRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,4,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,7,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,9,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,10,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,11,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,12,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,13,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,14,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Password string `protobuf:"bytes,15,opt,name=password,proto3" json:"password,omitempty"` -} - -func (x *CreateHumanRequest) Reset() { - *x = CreateHumanRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateHumanRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateHumanRequest) ProtoMessage() {} - -func (x *CreateHumanRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateHumanRequest.ProtoReflect.Descriptor instead. -func (*CreateHumanRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{10} -} - -func (x *CreateHumanRequest) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *CreateHumanRequest) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *CreateHumanRequest) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *CreateHumanRequest) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *CreateHumanRequest) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *CreateHumanRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *CreateHumanRequest) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *CreateHumanRequest) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *CreateHumanRequest) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *CreateHumanRequest) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *CreateHumanRequest) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *CreateHumanRequest) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *CreateHumanRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *CreateHumanRequest) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *CreateHumanRequest) GetPassword() string { - if x != nil { - return x.Password - } - return "" -} - -type CreateMachineRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *CreateMachineRequest) Reset() { - *x = CreateMachineRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateMachineRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateMachineRequest) ProtoMessage() {} - -func (x *CreateMachineRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateMachineRequest.ProtoReflect.Descriptor instead. -func (*CreateMachineRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{11} -} - -func (x *CreateMachineRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateMachineRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type UserResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.UserState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - // Types that are assignable to User: - // *UserResponse_Human - // *UserResponse_Machine - User isUserResponse_User `protobuf_oneof:"user"` -} - -func (x *UserResponse) Reset() { - *x = UserResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserResponse) ProtoMessage() {} - -func (x *UserResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserResponse.ProtoReflect.Descriptor instead. -func (*UserResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{12} -} - -func (x *UserResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserResponse) GetState() UserState { - if x != nil { - return x.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (x *UserResponse) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserResponse) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserResponse) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserResponse) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (m *UserResponse) GetUser() isUserResponse_User { - if m != nil { - return m.User - } - return nil -} - -func (x *UserResponse) GetHuman() *HumanResponse { - if x, ok := x.GetUser().(*UserResponse_Human); ok { - return x.Human - } - return nil -} - -func (x *UserResponse) GetMachine() *MachineResponse { - if x, ok := x.GetUser().(*UserResponse_Machine); ok { - return x.Machine - } - return nil -} - -type isUserResponse_User interface { - isUserResponse_User() -} - -type UserResponse_Human struct { - Human *HumanResponse `protobuf:"bytes,7,opt,name=human,proto3,oneof"` -} - -type UserResponse_Machine struct { - Machine *MachineResponse `protobuf:"bytes,8,opt,name=machine,proto3,oneof"` -} - -func (*UserResponse_Human) isUserResponse_User() {} - -func (*UserResponse_Machine) isUserResponse_User() {} - -type HumanResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=caos.zitadel.admin.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` -} - -func (x *HumanResponse) Reset() { - *x = HumanResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HumanResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HumanResponse) ProtoMessage() {} - -func (x *HumanResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HumanResponse.ProtoReflect.Descriptor instead. -func (*HumanResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{13} -} - -func (x *HumanResponse) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *HumanResponse) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *HumanResponse) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *HumanResponse) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *HumanResponse) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *HumanResponse) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *HumanResponse) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *HumanResponse) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *HumanResponse) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *HumanResponse) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *HumanResponse) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *HumanResponse) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *HumanResponse) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *HumanResponse) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *HumanResponse) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -type MachineResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - Keys []*MachineKeyResponse `protobuf:"bytes,3,rep,name=keys,proto3" json:"keys,omitempty"` -} - -func (x *MachineResponse) Reset() { - *x = MachineResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MachineResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MachineResponse) ProtoMessage() {} - -func (x *MachineResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MachineResponse.ProtoReflect.Descriptor instead. -func (*MachineResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{14} -} - -func (x *MachineResponse) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MachineResponse) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *MachineResponse) GetKeys() []*MachineKeyResponse { - if x != nil { - return x.Keys - } - return nil -} - -type MachineKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type MachineKeyType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.admin.api.v1.MachineKeyType" json:"type,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ExpirationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` -} - -func (x *MachineKeyResponse) Reset() { - *x = MachineKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MachineKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MachineKeyResponse) ProtoMessage() {} - -func (x *MachineKeyResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MachineKeyResponse.ProtoReflect.Descriptor instead. -func (*MachineKeyResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{15} -} - -func (x *MachineKeyResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *MachineKeyResponse) GetType() MachineKeyType { - if x != nil { - return x.Type - } - return MachineKeyType_MACHINEKEY_UNSPECIFIED -} - -func (x *MachineKeyResponse) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *MachineKeyResponse) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *MachineKeyResponse) GetExpirationDate() *timestamp.Timestamp { - if x != nil { - return x.ExpirationDate - } - return nil -} - -type CreateOrgRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` -} - -func (x *CreateOrgRequest) Reset() { - *x = CreateOrgRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateOrgRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateOrgRequest) ProtoMessage() {} - -func (x *CreateOrgRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateOrgRequest.ProtoReflect.Descriptor instead. -func (*CreateOrgRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{16} -} - -func (x *CreateOrgRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateOrgRequest) GetDomain() string { - if x != nil { - return x.Domain - } - return "" -} - -type OrgIamPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - UserLoginMustBeDomain bool `protobuf:"varint,2,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` - Default bool `protobuf:"varint,3,opt,name=default,proto3" json:"default,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *OrgIamPolicy) Reset() { - *x = OrgIamPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicy) ProtoMessage() {} - -func (x *OrgIamPolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgIamPolicy.ProtoReflect.Descriptor instead. -func (*OrgIamPolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{17} -} - -func (x *OrgIamPolicy) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgIamPolicy) GetUserLoginMustBeDomain() bool { - if x != nil { - return x.UserLoginMustBeDomain - } - return false -} - -func (x *OrgIamPolicy) GetDefault() bool { - if x != nil { - return x.Default - } - return false -} - -func (x *OrgIamPolicy) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *OrgIamPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgIamPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type OrgIamPolicyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - UserLoginMustBeDomain bool `protobuf:"varint,2,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` - Default bool `protobuf:"varint,3,opt,name=default,proto3" json:"default,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *OrgIamPolicyView) Reset() { - *x = OrgIamPolicyView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicyView) ProtoMessage() {} - -func (x *OrgIamPolicyView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgIamPolicyView.ProtoReflect.Descriptor instead. -func (*OrgIamPolicyView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{18} -} - -func (x *OrgIamPolicyView) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgIamPolicyView) GetUserLoginMustBeDomain() bool { - if x != nil { - return x.UserLoginMustBeDomain - } - return false -} - -func (x *OrgIamPolicyView) GetDefault() bool { - if x != nil { - return x.Default - } - return false -} - -func (x *OrgIamPolicyView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *OrgIamPolicyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *OrgIamPolicyView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type OrgIamPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - UserLoginMustBeDomain bool `protobuf:"varint,3,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` -} - -func (x *OrgIamPolicyRequest) Reset() { - *x = OrgIamPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicyRequest) ProtoMessage() {} - -func (x *OrgIamPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgIamPolicyRequest.ProtoReflect.Descriptor instead. -func (*OrgIamPolicyRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{19} -} - -func (x *OrgIamPolicyRequest) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *OrgIamPolicyRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *OrgIamPolicyRequest) GetUserLoginMustBeDomain() bool { - if x != nil { - return x.UserLoginMustBeDomain - } - return false -} - -type OrgIamPolicyID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` -} - -func (x *OrgIamPolicyID) Reset() { - *x = OrgIamPolicyID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OrgIamPolicyID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OrgIamPolicyID) ProtoMessage() {} - -func (x *OrgIamPolicyID) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OrgIamPolicyID.ProtoReflect.Descriptor instead. -func (*OrgIamPolicyID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{20} -} - -func (x *OrgIamPolicyID) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -type IamMemberRoles struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *IamMemberRoles) Reset() { - *x = IamMemberRoles{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberRoles) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberRoles) ProtoMessage() {} - -func (x *IamMemberRoles) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IamMemberRoles.ProtoReflect.Descriptor instead. -func (*IamMemberRoles) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{21} -} - -func (x *IamMemberRoles) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type IamMember struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *IamMember) Reset() { - *x = IamMember{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMember) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMember) ProtoMessage() {} - -func (x *IamMember) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IamMember.ProtoReflect.Descriptor instead. -func (*IamMember) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{22} -} - -func (x *IamMember) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *IamMember) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *IamMember) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *IamMember) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *IamMember) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type AddIamMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *AddIamMemberRequest) Reset() { - *x = AddIamMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddIamMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddIamMemberRequest) ProtoMessage() {} - -func (x *AddIamMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AddIamMemberRequest.ProtoReflect.Descriptor instead. -func (*AddIamMemberRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{23} -} - -func (x *AddIamMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddIamMemberRequest) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type ChangeIamMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` -} - -func (x *ChangeIamMemberRequest) Reset() { - *x = ChangeIamMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeIamMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeIamMemberRequest) ProtoMessage() {} - -func (x *ChangeIamMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChangeIamMemberRequest.ProtoReflect.Descriptor instead. -func (*ChangeIamMemberRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{24} -} - -func (x *ChangeIamMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ChangeIamMemberRequest) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -type RemoveIamMemberRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` -} - -func (x *RemoveIamMemberRequest) Reset() { - *x = RemoveIamMemberRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RemoveIamMemberRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RemoveIamMemberRequest) ProtoMessage() {} - -func (x *RemoveIamMemberRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RemoveIamMemberRequest.ProtoReflect.Descriptor instead. -func (*RemoveIamMemberRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{25} -} - -func (x *RemoveIamMemberRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type IamMemberSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*IamMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *IamMemberSearchResponse) Reset() { - *x = IamMemberSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberSearchResponse) ProtoMessage() {} - -func (x *IamMemberSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IamMemberSearchResponse.ProtoReflect.Descriptor instead. -func (*IamMemberSearchResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{26} -} - -func (x *IamMemberSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IamMemberSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IamMemberSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *IamMemberSearchResponse) GetResult() []*IamMemberView { - if x != nil { - return x.Result - } - return nil -} - -func (x *IamMemberSearchResponse) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *IamMemberSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type IamMemberView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` -} - -func (x *IamMemberView) Reset() { - *x = IamMemberView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberView) ProtoMessage() {} - -func (x *IamMemberView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IamMemberView.ProtoReflect.Descriptor instead. -func (*IamMemberView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{27} -} - -func (x *IamMemberView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *IamMemberView) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *IamMemberView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *IamMemberView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *IamMemberView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *IamMemberView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *IamMemberView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *IamMemberView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *IamMemberView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *IamMemberView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -type IamMemberSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*IamMemberSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *IamMemberSearchRequest) Reset() { - *x = IamMemberSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberSearchRequest) ProtoMessage() {} - -func (x *IamMemberSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IamMemberSearchRequest.ProtoReflect.Descriptor instead. -func (*IamMemberSearchRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{28} -} - -func (x *IamMemberSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IamMemberSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IamMemberSearchRequest) GetQueries() []*IamMemberSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type IamMemberSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key IamMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.IamMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *IamMemberSearchQuery) Reset() { - *x = IamMemberSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IamMemberSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IamMemberSearchQuery) ProtoMessage() {} - -func (x *IamMemberSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IamMemberSearchQuery.ProtoReflect.Descriptor instead. -func (*IamMemberSearchQuery) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{29} -} - -func (x *IamMemberSearchQuery) GetKey() IamMemberSearchKey { - if x != nil { - return x.Key - } - return IamMemberSearchKey_IAMMEMBERSEARCHKEY_UNSPECIFIED -} - -func (x *IamMemberSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *IamMemberSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type FailedEventID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` - FailedSequence uint64 `protobuf:"varint,3,opt,name=failed_sequence,json=failedSequence,proto3" json:"failed_sequence,omitempty"` -} - -func (x *FailedEventID) Reset() { - *x = FailedEventID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FailedEventID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailedEventID) ProtoMessage() {} - -func (x *FailedEventID) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FailedEventID.ProtoReflect.Descriptor instead. -func (*FailedEventID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{30} -} - -func (x *FailedEventID) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *FailedEventID) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -func (x *FailedEventID) GetFailedSequence() uint64 { - if x != nil { - return x.FailedSequence - } - return 0 -} - -type FailedEvents struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FailedEvents []*FailedEvent `protobuf:"bytes,1,rep,name=failed_events,json=failedEvents,proto3" json:"failed_events,omitempty"` -} - -func (x *FailedEvents) Reset() { - *x = FailedEvents{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FailedEvents) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailedEvents) ProtoMessage() {} - -func (x *FailedEvents) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FailedEvents.ProtoReflect.Descriptor instead. -func (*FailedEvents) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{31} -} - -func (x *FailedEvents) GetFailedEvents() []*FailedEvent { - if x != nil { - return x.FailedEvents - } - return nil -} - -type FailedEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` - FailedSequence uint64 `protobuf:"varint,3,opt,name=failed_sequence,json=failedSequence,proto3" json:"failed_sequence,omitempty"` - FailureCount uint64 `protobuf:"varint,4,opt,name=failure_count,json=failureCount,proto3" json:"failure_count,omitempty"` - ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *FailedEvent) Reset() { - *x = FailedEvent{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FailedEvent) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FailedEvent) ProtoMessage() {} - -func (x *FailedEvent) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FailedEvent.ProtoReflect.Descriptor instead. -func (*FailedEvent) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{32} -} - -func (x *FailedEvent) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *FailedEvent) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -func (x *FailedEvent) GetFailedSequence() uint64 { - if x != nil { - return x.FailedSequence - } - return 0 -} - -func (x *FailedEvent) GetFailureCount() uint64 { - if x != nil { - return x.FailureCount - } - return 0 -} - -func (x *FailedEvent) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -type ViewID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` -} - -func (x *ViewID) Reset() { - *x = ViewID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ViewID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ViewID) ProtoMessage() {} - -func (x *ViewID) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ViewID.ProtoReflect.Descriptor instead. -func (*ViewID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{33} -} - -func (x *ViewID) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *ViewID) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -type Views struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Views []*View `protobuf:"bytes,1,rep,name=views,proto3" json:"views,omitempty"` -} - -func (x *Views) Reset() { - *x = Views{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Views) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Views) ProtoMessage() {} - -func (x *Views) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Views.ProtoReflect.Descriptor instead. -func (*Views) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{34} -} - -func (x *Views) GetViews() []*View { - if x != nil { - return x.Views - } - return nil -} - -type View struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` - ViewName string `protobuf:"bytes,2,opt,name=view_name,json=viewName,proto3" json:"view_name,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,3,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *View) Reset() { - *x = View{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *View) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*View) ProtoMessage() {} - -func (x *View) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use View.ProtoReflect.Descriptor instead. -func (*View) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{35} -} - -func (x *View) GetDatabase() string { - if x != nil { - return x.Database - } - return "" -} - -func (x *View) GetViewName() string { - if x != nil { - return x.ViewName - } - return "" -} - -func (x *View) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *View) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type IdpID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *IdpID) Reset() { - *x = IdpID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpID) ProtoMessage() {} - -func (x *IdpID) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpID.ProtoReflect.Descriptor instead. -func (*IdpID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{36} -} - -func (x *IdpID) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type Idp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State IdpState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.IdpState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,6,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.admin.api.v1.IdpStylingType" json:"styling_type,omitempty"` - // Types that are assignable to IdpConfig: - // *Idp_OidcConfig - IdpConfig isIdp_IdpConfig `protobuf_oneof:"idp_config"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *Idp) Reset() { - *x = Idp{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Idp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Idp) ProtoMessage() {} - -func (x *Idp) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Idp.ProtoReflect.Descriptor instead. -func (*Idp) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{37} -} - -func (x *Idp) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Idp) GetState() IdpState { - if x != nil { - return x.State - } - return IdpState_IDPCONFIGSTATE_UNSPECIFIED -} - -func (x *Idp) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *Idp) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Idp) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Idp) GetStylingType() IdpStylingType { - if x != nil { - return x.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -func (m *Idp) GetIdpConfig() isIdp_IdpConfig { - if m != nil { - return m.IdpConfig - } - return nil -} - -func (x *Idp) GetOidcConfig() *OidcIdpConfig { - if x, ok := x.GetIdpConfig().(*Idp_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (x *Idp) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type isIdp_IdpConfig interface { - isIdp_IdpConfig() -} - -type Idp_OidcConfig struct { - OidcConfig *OidcIdpConfig `protobuf:"bytes,7,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*Idp_OidcConfig) isIdp_IdpConfig() {} - -type IdpUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,3,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.admin.api.v1.IdpStylingType" json:"styling_type,omitempty"` -} - -func (x *IdpUpdate) Reset() { - *x = IdpUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpUpdate) ProtoMessage() {} - -func (x *IdpUpdate) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpUpdate.ProtoReflect.Descriptor instead. -func (*IdpUpdate) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{38} -} - -func (x *IdpUpdate) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *IdpUpdate) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *IdpUpdate) GetStylingType() IdpStylingType { - if x != nil { - return x.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -type OidcIdpConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` -} - -func (x *OidcIdpConfig) Reset() { - *x = OidcIdpConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OidcIdpConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OidcIdpConfig) ProtoMessage() {} - -func (x *OidcIdpConfig) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OidcIdpConfig.ProtoReflect.Descriptor instead. -func (*OidcIdpConfig) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{39} -} - -func (x *OidcIdpConfig) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *OidcIdpConfig) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -func (x *OidcIdpConfig) GetIssuer() string { - if x != nil { - return x.Issuer - } - return "" -} - -func (x *OidcIdpConfig) GetScopes() []string { - if x != nil { - return x.Scopes - } - return nil -} - -type OidcIdpConfigCreate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,2,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.admin.api.v1.IdpStylingType" json:"styling_type,omitempty"` - ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - Issuer string `protobuf:"bytes,5,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,7,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.admin.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,8,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.admin.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` -} - -func (x *OidcIdpConfigCreate) Reset() { - *x = OidcIdpConfigCreate{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OidcIdpConfigCreate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OidcIdpConfigCreate) ProtoMessage() {} - -func (x *OidcIdpConfigCreate) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OidcIdpConfigCreate.ProtoReflect.Descriptor instead. -func (*OidcIdpConfigCreate) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{40} -} - -func (x *OidcIdpConfigCreate) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *OidcIdpConfigCreate) GetStylingType() IdpStylingType { - if x != nil { - return x.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -func (x *OidcIdpConfigCreate) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *OidcIdpConfigCreate) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -func (x *OidcIdpConfigCreate) GetIssuer() string { - if x != nil { - return x.Issuer - } - return "" -} - -func (x *OidcIdpConfigCreate) GetScopes() []string { - if x != nil { - return x.Scopes - } - return nil -} - -func (x *OidcIdpConfigCreate) GetIdpDisplayNameMapping() OIDCMappingField { - if x != nil { - return x.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (x *OidcIdpConfigCreate) GetUsernameMapping() OIDCMappingField { - if x != nil { - return x.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type OidcIdpConfigUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IdpId string `protobuf:"bytes,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"` - ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - Issuer string `protobuf:"bytes,4,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,6,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.admin.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,7,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.admin.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` -} - -func (x *OidcIdpConfigUpdate) Reset() { - *x = OidcIdpConfigUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OidcIdpConfigUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OidcIdpConfigUpdate) ProtoMessage() {} - -func (x *OidcIdpConfigUpdate) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OidcIdpConfigUpdate.ProtoReflect.Descriptor instead. -func (*OidcIdpConfigUpdate) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{41} -} - -func (x *OidcIdpConfigUpdate) GetIdpId() string { - if x != nil { - return x.IdpId - } - return "" -} - -func (x *OidcIdpConfigUpdate) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *OidcIdpConfigUpdate) GetClientSecret() string { - if x != nil { - return x.ClientSecret - } - return "" -} - -func (x *OidcIdpConfigUpdate) GetIssuer() string { - if x != nil { - return x.Issuer - } - return "" -} - -func (x *OidcIdpConfigUpdate) GetScopes() []string { - if x != nil { - return x.Scopes - } - return nil -} - -func (x *OidcIdpConfigUpdate) GetIdpDisplayNameMapping() OIDCMappingField { - if x != nil { - return x.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (x *OidcIdpConfigUpdate) GetUsernameMapping() OIDCMappingField { - if x != nil { - return x.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type IdpSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*IdpView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *IdpSearchResponse) Reset() { - *x = IdpSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpSearchResponse) ProtoMessage() {} - -func (x *IdpSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpSearchResponse.ProtoReflect.Descriptor instead. -func (*IdpSearchResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{42} -} - -func (x *IdpSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IdpSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IdpSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *IdpSearchResponse) GetResult() []*IdpView { - if x != nil { - return x.Result - } - return nil -} - -func (x *IdpSearchResponse) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *IdpSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type IdpView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State IdpState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.admin.api.v1.IdpState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,6,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.admin.api.v1.IdpStylingType" json:"styling_type,omitempty"` - // Types that are assignable to IdpConfigView: - // *IdpView_OidcConfig - IdpConfigView isIdpView_IdpConfigView `protobuf_oneof:"idp_config_view"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` -} - -func (x *IdpView) Reset() { - *x = IdpView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpView) ProtoMessage() {} - -func (x *IdpView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpView.ProtoReflect.Descriptor instead. -func (*IdpView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{43} -} - -func (x *IdpView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *IdpView) GetState() IdpState { - if x != nil { - return x.State - } - return IdpState_IDPCONFIGSTATE_UNSPECIFIED -} - -func (x *IdpView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *IdpView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *IdpView) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *IdpView) GetStylingType() IdpStylingType { - if x != nil { - return x.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -func (m *IdpView) GetIdpConfigView() isIdpView_IdpConfigView { - if m != nil { - return m.IdpConfigView - } - return nil -} - -func (x *IdpView) GetOidcConfig() *OidcIdpConfigView { - if x, ok := x.GetIdpConfigView().(*IdpView_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (x *IdpView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -type isIdpView_IdpConfigView interface { - isIdpView_IdpConfigView() -} - -type IdpView_OidcConfig struct { - OidcConfig *OidcIdpConfigView `protobuf:"bytes,7,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*IdpView_OidcConfig) isIdpView_IdpConfigView() {} - -type OidcIdpConfigView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,4,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.admin.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,5,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.admin.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` -} - -func (x *OidcIdpConfigView) Reset() { - *x = OidcIdpConfigView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OidcIdpConfigView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OidcIdpConfigView) ProtoMessage() {} - -func (x *OidcIdpConfigView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OidcIdpConfigView.ProtoReflect.Descriptor instead. -func (*OidcIdpConfigView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{44} -} - -func (x *OidcIdpConfigView) GetClientId() string { - if x != nil { - return x.ClientId - } - return "" -} - -func (x *OidcIdpConfigView) GetIssuer() string { - if x != nil { - return x.Issuer - } - return "" -} - -func (x *OidcIdpConfigView) GetScopes() []string { - if x != nil { - return x.Scopes - } - return nil -} - -func (x *OidcIdpConfigView) GetIdpDisplayNameMapping() OIDCMappingField { - if x != nil { - return x.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (x *OidcIdpConfigView) GetUsernameMapping() OIDCMappingField { - if x != nil { - return x.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type IdpSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*IdpSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *IdpSearchRequest) Reset() { - *x = IdpSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpSearchRequest) ProtoMessage() {} - -func (x *IdpSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpSearchRequest.ProtoReflect.Descriptor instead. -func (*IdpSearchRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{45} -} - -func (x *IdpSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IdpSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IdpSearchRequest) GetQueries() []*IdpSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type IdpSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key IdpSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.admin.api.v1.IdpSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.admin.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *IdpSearchQuery) Reset() { - *x = IdpSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpSearchQuery) ProtoMessage() {} - -func (x *IdpSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpSearchQuery.ProtoReflect.Descriptor instead. -func (*IdpSearchQuery) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{46} -} - -func (x *IdpSearchQuery) GetKey() IdpSearchKey { - if x != nil { - return x.Key - } - return IdpSearchKey_IDPSEARCHKEY_UNSPECIFIED -} - -func (x *IdpSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *IdpSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type DefaultLabelPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PrimaryColor string `protobuf:"bytes,1,opt,name=primary_color,json=primaryColor,proto3" json:"primary_color,omitempty"` - SecondaryColor string `protobuf:"bytes,2,opt,name=secondary_color,json=secondaryColor,proto3" json:"secondary_color,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultLabelPolicy) Reset() { - *x = DefaultLabelPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultLabelPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultLabelPolicy) ProtoMessage() {} - -func (x *DefaultLabelPolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultLabelPolicy.ProtoReflect.Descriptor instead. -func (*DefaultLabelPolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{47} -} - -func (x *DefaultLabelPolicy) GetPrimaryColor() string { - if x != nil { - return x.PrimaryColor - } - return "" -} - -func (x *DefaultLabelPolicy) GetSecondaryColor() string { - if x != nil { - return x.SecondaryColor - } - return "" -} - -func (x *DefaultLabelPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultLabelPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultLabelPolicyUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PrimaryColor string `protobuf:"bytes,1,opt,name=primary_color,json=primaryColor,proto3" json:"primary_color,omitempty"` - SecondaryColor string `protobuf:"bytes,2,opt,name=secondary_color,json=secondaryColor,proto3" json:"secondary_color,omitempty"` -} - -func (x *DefaultLabelPolicyUpdate) Reset() { - *x = DefaultLabelPolicyUpdate{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultLabelPolicyUpdate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultLabelPolicyUpdate) ProtoMessage() {} - -func (x *DefaultLabelPolicyUpdate) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultLabelPolicyUpdate.ProtoReflect.Descriptor instead. -func (*DefaultLabelPolicyUpdate) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{48} -} - -func (x *DefaultLabelPolicyUpdate) GetPrimaryColor() string { - if x != nil { - return x.PrimaryColor - } - return "" -} - -func (x *DefaultLabelPolicyUpdate) GetSecondaryColor() string { - if x != nil { - return x.SecondaryColor - } - return "" -} - -type DefaultLabelPolicyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PrimaryColor string `protobuf:"bytes,1,opt,name=primary_color,json=primaryColor,proto3" json:"primary_color,omitempty"` - SecondaryColor string `protobuf:"bytes,2,opt,name=secondary_color,json=secondaryColor,proto3" json:"secondary_color,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultLabelPolicyView) Reset() { - *x = DefaultLabelPolicyView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultLabelPolicyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultLabelPolicyView) ProtoMessage() {} - -func (x *DefaultLabelPolicyView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultLabelPolicyView.ProtoReflect.Descriptor instead. -func (*DefaultLabelPolicyView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{49} -} - -func (x *DefaultLabelPolicyView) GetPrimaryColor() string { - if x != nil { - return x.PrimaryColor - } - return "" -} - -func (x *DefaultLabelPolicyView) GetSecondaryColor() string { - if x != nil { - return x.SecondaryColor - } - return "" -} - -func (x *DefaultLabelPolicyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultLabelPolicyView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultLoginPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AllowUsernamePassword bool `protobuf:"varint,1,opt,name=allow_username_password,json=allowUsernamePassword,proto3" json:"allow_username_password,omitempty"` - AllowRegister bool `protobuf:"varint,2,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` - AllowExternalIdp bool `protobuf:"varint,3,opt,name=allow_external_idp,json=allowExternalIdp,proto3" json:"allow_external_idp,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - ForceMfa bool `protobuf:"varint,6,opt,name=force_mfa,json=forceMfa,proto3" json:"force_mfa,omitempty"` -} - -func (x *DefaultLoginPolicy) Reset() { - *x = DefaultLoginPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultLoginPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultLoginPolicy) ProtoMessage() {} - -func (x *DefaultLoginPolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultLoginPolicy.ProtoReflect.Descriptor instead. -func (*DefaultLoginPolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{50} -} - -func (x *DefaultLoginPolicy) GetAllowUsernamePassword() bool { - if x != nil { - return x.AllowUsernamePassword - } - return false -} - -func (x *DefaultLoginPolicy) GetAllowRegister() bool { - if x != nil { - return x.AllowRegister - } - return false -} - -func (x *DefaultLoginPolicy) GetAllowExternalIdp() bool { - if x != nil { - return x.AllowExternalIdp - } - return false -} - -func (x *DefaultLoginPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultLoginPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *DefaultLoginPolicy) GetForceMfa() bool { - if x != nil { - return x.ForceMfa - } - return false -} - -type DefaultLoginPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AllowUsernamePassword bool `protobuf:"varint,1,opt,name=allow_username_password,json=allowUsernamePassword,proto3" json:"allow_username_password,omitempty"` - AllowRegister bool `protobuf:"varint,2,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` - AllowExternalIdp bool `protobuf:"varint,3,opt,name=allow_external_idp,json=allowExternalIdp,proto3" json:"allow_external_idp,omitempty"` - ForceMfa bool `protobuf:"varint,4,opt,name=force_mfa,json=forceMfa,proto3" json:"force_mfa,omitempty"` -} - -func (x *DefaultLoginPolicyRequest) Reset() { - *x = DefaultLoginPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultLoginPolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultLoginPolicyRequest) ProtoMessage() {} - -func (x *DefaultLoginPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultLoginPolicyRequest.ProtoReflect.Descriptor instead. -func (*DefaultLoginPolicyRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{51} -} - -func (x *DefaultLoginPolicyRequest) GetAllowUsernamePassword() bool { - if x != nil { - return x.AllowUsernamePassword - } - return false -} - -func (x *DefaultLoginPolicyRequest) GetAllowRegister() bool { - if x != nil { - return x.AllowRegister - } - return false -} - -func (x *DefaultLoginPolicyRequest) GetAllowExternalIdp() bool { - if x != nil { - return x.AllowExternalIdp - } - return false -} - -func (x *DefaultLoginPolicyRequest) GetForceMfa() bool { - if x != nil { - return x.ForceMfa - } - return false -} - -type IdpProviderID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` -} - -func (x *IdpProviderID) Reset() { - *x = IdpProviderID{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpProviderID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpProviderID) ProtoMessage() {} - -func (x *IdpProviderID) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpProviderID.ProtoReflect.Descriptor instead. -func (*IdpProviderID) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{52} -} - -func (x *IdpProviderID) GetIdpConfigId() string { - if x != nil { - return x.IdpConfigId - } - return "" -} - -type DefaultLoginPolicyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AllowUsernamePassword bool `protobuf:"varint,1,opt,name=allow_username_password,json=allowUsernamePassword,proto3" json:"allow_username_password,omitempty"` - AllowRegister bool `protobuf:"varint,2,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` - AllowExternalIdp bool `protobuf:"varint,3,opt,name=allow_external_idp,json=allowExternalIdp,proto3" json:"allow_external_idp,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - ForceMfa bool `protobuf:"varint,6,opt,name=force_mfa,json=forceMfa,proto3" json:"force_mfa,omitempty"` -} - -func (x *DefaultLoginPolicyView) Reset() { - *x = DefaultLoginPolicyView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultLoginPolicyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultLoginPolicyView) ProtoMessage() {} - -func (x *DefaultLoginPolicyView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultLoginPolicyView.ProtoReflect.Descriptor instead. -func (*DefaultLoginPolicyView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{53} -} - -func (x *DefaultLoginPolicyView) GetAllowUsernamePassword() bool { - if x != nil { - return x.AllowUsernamePassword - } - return false -} - -func (x *DefaultLoginPolicyView) GetAllowRegister() bool { - if x != nil { - return x.AllowRegister - } - return false -} - -func (x *DefaultLoginPolicyView) GetAllowExternalIdp() bool { - if x != nil { - return x.AllowExternalIdp - } - return false -} - -func (x *DefaultLoginPolicyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultLoginPolicyView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *DefaultLoginPolicyView) GetForceMfa() bool { - if x != nil { - return x.ForceMfa - } - return false -} - -type IdpProviderView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type IdpType `protobuf:"varint,3,opt,name=type,proto3,enum=caos.zitadel.admin.api.v1.IdpType" json:"type,omitempty"` -} - -func (x *IdpProviderView) Reset() { - *x = IdpProviderView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpProviderView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpProviderView) ProtoMessage() {} - -func (x *IdpProviderView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpProviderView.ProtoReflect.Descriptor instead. -func (*IdpProviderView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{54} -} - -func (x *IdpProviderView) GetIdpConfigId() string { - if x != nil { - return x.IdpConfigId - } - return "" -} - -func (x *IdpProviderView) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *IdpProviderView) GetType() IdpType { - if x != nil { - return x.Type - } - return IdpType_IDPTYPE_UNSPECIFIED -} - -type IdpProviderSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*IdpProviderView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *IdpProviderSearchResponse) Reset() { - *x = IdpProviderSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpProviderSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpProviderSearchResponse) ProtoMessage() {} - -func (x *IdpProviderSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpProviderSearchResponse.ProtoReflect.Descriptor instead. -func (*IdpProviderSearchResponse) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{55} -} - -func (x *IdpProviderSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IdpProviderSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *IdpProviderSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *IdpProviderSearchResponse) GetResult() []*IdpProviderView { - if x != nil { - return x.Result - } - return nil -} - -func (x *IdpProviderSearchResponse) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *IdpProviderSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type IdpProviderSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (x *IdpProviderSearchRequest) Reset() { - *x = IdpProviderSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *IdpProviderSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IdpProviderSearchRequest) ProtoMessage() {} - -func (x *IdpProviderSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IdpProviderSearchRequest.ProtoReflect.Descriptor instead. -func (*IdpProviderSearchRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{56} -} - -func (x *IdpProviderSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *IdpProviderSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -type SecondFactorsResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SecondFactors []SecondFactorType `protobuf:"varint,1,rep,packed,name=second_factors,json=secondFactors,proto3,enum=caos.zitadel.admin.api.v1.SecondFactorType" json:"second_factors,omitempty"` -} - -func (x *SecondFactorsResult) Reset() { - *x = SecondFactorsResult{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SecondFactorsResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SecondFactorsResult) ProtoMessage() {} - -func (x *SecondFactorsResult) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SecondFactorsResult.ProtoReflect.Descriptor instead. -func (*SecondFactorsResult) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{57} -} - -func (x *SecondFactorsResult) GetSecondFactors() []SecondFactorType { - if x != nil { - return x.SecondFactors - } - return nil -} - -type SecondFactor struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SecondFactor SecondFactorType `protobuf:"varint,1,opt,name=second_factor,json=secondFactor,proto3,enum=caos.zitadel.admin.api.v1.SecondFactorType" json:"second_factor,omitempty"` -} - -func (x *SecondFactor) Reset() { - *x = SecondFactor{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SecondFactor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SecondFactor) ProtoMessage() {} - -func (x *SecondFactor) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SecondFactor.ProtoReflect.Descriptor instead. -func (*SecondFactor) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{58} -} - -func (x *SecondFactor) GetSecondFactor() SecondFactorType { - if x != nil { - return x.SecondFactor - } - return SecondFactorType_SECONDFACTORTYPE_UNSPECIFIED -} - -type MultiFactorsResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MultiFactors []MultiFactorType `protobuf:"varint,1,rep,packed,name=multi_factors,json=multiFactors,proto3,enum=caos.zitadel.admin.api.v1.MultiFactorType" json:"multi_factors,omitempty"` -} - -func (x *MultiFactorsResult) Reset() { - *x = MultiFactorsResult{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MultiFactorsResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MultiFactorsResult) ProtoMessage() {} - -func (x *MultiFactorsResult) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MultiFactorsResult.ProtoReflect.Descriptor instead. -func (*MultiFactorsResult) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{59} -} - -func (x *MultiFactorsResult) GetMultiFactors() []MultiFactorType { - if x != nil { - return x.MultiFactors - } - return nil -} - -type MultiFactor struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MultiFactor MultiFactorType `protobuf:"varint,1,opt,name=multi_factor,json=multiFactor,proto3,enum=caos.zitadel.admin.api.v1.MultiFactorType" json:"multi_factor,omitempty"` -} - -func (x *MultiFactor) Reset() { - *x = MultiFactor{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MultiFactor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MultiFactor) ProtoMessage() {} - -func (x *MultiFactor) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MultiFactor.ProtoReflect.Descriptor instead. -func (*MultiFactor) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{60} -} - -func (x *MultiFactor) GetMultiFactor() MultiFactorType { - if x != nil { - return x.MultiFactor - } - return MultiFactorType_MULTIFACTORTYPE_UNSPECIFIED -} - -type DefaultPasswordComplexityPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinLength uint64 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasUppercase bool `protobuf:"varint,2,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasLowercase bool `protobuf:"varint,3,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasNumber bool `protobuf:"varint,4,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,5,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultPasswordComplexityPolicy) Reset() { - *x = DefaultPasswordComplexityPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordComplexityPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordComplexityPolicy) ProtoMessage() {} - -func (x *DefaultPasswordComplexityPolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordComplexityPolicy.ProtoReflect.Descriptor instead. -func (*DefaultPasswordComplexityPolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{61} -} - -func (x *DefaultPasswordComplexityPolicy) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *DefaultPasswordComplexityPolicy) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *DefaultPasswordComplexityPolicy) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *DefaultPasswordComplexityPolicy) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *DefaultPasswordComplexityPolicy) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -func (x *DefaultPasswordComplexityPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultPasswordComplexityPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultPasswordComplexityPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinLength uint64 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasUppercase bool `protobuf:"varint,2,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasLowercase bool `protobuf:"varint,3,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasNumber bool `protobuf:"varint,4,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,5,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` -} - -func (x *DefaultPasswordComplexityPolicyRequest) Reset() { - *x = DefaultPasswordComplexityPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordComplexityPolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordComplexityPolicyRequest) ProtoMessage() {} - -func (x *DefaultPasswordComplexityPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordComplexityPolicyRequest.ProtoReflect.Descriptor instead. -func (*DefaultPasswordComplexityPolicyRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{62} -} - -func (x *DefaultPasswordComplexityPolicyRequest) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *DefaultPasswordComplexityPolicyRequest) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *DefaultPasswordComplexityPolicyRequest) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *DefaultPasswordComplexityPolicyRequest) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *DefaultPasswordComplexityPolicyRequest) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -type DefaultPasswordComplexityPolicyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MinLength uint64 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasUppercase bool `protobuf:"varint,2,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasLowercase bool `protobuf:"varint,3,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasNumber bool `protobuf:"varint,4,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,5,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultPasswordComplexityPolicyView) Reset() { - *x = DefaultPasswordComplexityPolicyView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordComplexityPolicyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordComplexityPolicyView) ProtoMessage() {} - -func (x *DefaultPasswordComplexityPolicyView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordComplexityPolicyView.ProtoReflect.Descriptor instead. -func (*DefaultPasswordComplexityPolicyView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{63} -} - -func (x *DefaultPasswordComplexityPolicyView) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *DefaultPasswordComplexityPolicyView) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *DefaultPasswordComplexityPolicyView) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *DefaultPasswordComplexityPolicyView) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *DefaultPasswordComplexityPolicyView) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -func (x *DefaultPasswordComplexityPolicyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultPasswordComplexityPolicyView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultPasswordAgePolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxAgeDays uint64 `protobuf:"varint,1,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,2,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultPasswordAgePolicy) Reset() { - *x = DefaultPasswordAgePolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordAgePolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordAgePolicy) ProtoMessage() {} - -func (x *DefaultPasswordAgePolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordAgePolicy.ProtoReflect.Descriptor instead. -func (*DefaultPasswordAgePolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{64} -} - -func (x *DefaultPasswordAgePolicy) GetMaxAgeDays() uint64 { - if x != nil { - return x.MaxAgeDays - } - return 0 -} - -func (x *DefaultPasswordAgePolicy) GetExpireWarnDays() uint64 { - if x != nil { - return x.ExpireWarnDays - } - return 0 -} - -func (x *DefaultPasswordAgePolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultPasswordAgePolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultPasswordAgePolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxAgeDays uint64 `protobuf:"varint,1,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,2,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` -} - -func (x *DefaultPasswordAgePolicyRequest) Reset() { - *x = DefaultPasswordAgePolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordAgePolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordAgePolicyRequest) ProtoMessage() {} - -func (x *DefaultPasswordAgePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordAgePolicyRequest.ProtoReflect.Descriptor instead. -func (*DefaultPasswordAgePolicyRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{65} -} - -func (x *DefaultPasswordAgePolicyRequest) GetMaxAgeDays() uint64 { - if x != nil { - return x.MaxAgeDays - } - return 0 -} - -func (x *DefaultPasswordAgePolicyRequest) GetExpireWarnDays() uint64 { - if x != nil { - return x.ExpireWarnDays - } - return 0 -} - -type DefaultPasswordAgePolicyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxAgeDays uint64 `protobuf:"varint,1,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,2,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultPasswordAgePolicyView) Reset() { - *x = DefaultPasswordAgePolicyView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordAgePolicyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordAgePolicyView) ProtoMessage() {} - -func (x *DefaultPasswordAgePolicyView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordAgePolicyView.ProtoReflect.Descriptor instead. -func (*DefaultPasswordAgePolicyView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{66} -} - -func (x *DefaultPasswordAgePolicyView) GetMaxAgeDays() uint64 { - if x != nil { - return x.MaxAgeDays - } - return 0 -} - -func (x *DefaultPasswordAgePolicyView) GetExpireWarnDays() uint64 { - if x != nil { - return x.ExpireWarnDays - } - return 0 -} - -func (x *DefaultPasswordAgePolicyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultPasswordAgePolicyView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultPasswordLockoutPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxAttempts uint64 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockoutFailure bool `protobuf:"varint,2,opt,name=show_lockout_failure,json=showLockoutFailure,proto3" json:"show_lockout_failure,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultPasswordLockoutPolicy) Reset() { - *x = DefaultPasswordLockoutPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordLockoutPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordLockoutPolicy) ProtoMessage() {} - -func (x *DefaultPasswordLockoutPolicy) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordLockoutPolicy.ProtoReflect.Descriptor instead. -func (*DefaultPasswordLockoutPolicy) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{67} -} - -func (x *DefaultPasswordLockoutPolicy) GetMaxAttempts() uint64 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *DefaultPasswordLockoutPolicy) GetShowLockoutFailure() bool { - if x != nil { - return x.ShowLockoutFailure - } - return false -} - -func (x *DefaultPasswordLockoutPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultPasswordLockoutPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type DefaultPasswordLockoutPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxAttempts uint64 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockoutFailure bool `protobuf:"varint,2,opt,name=show_lockout_failure,json=showLockoutFailure,proto3" json:"show_lockout_failure,omitempty"` -} - -func (x *DefaultPasswordLockoutPolicyRequest) Reset() { - *x = DefaultPasswordLockoutPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordLockoutPolicyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordLockoutPolicyRequest) ProtoMessage() {} - -func (x *DefaultPasswordLockoutPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordLockoutPolicyRequest.ProtoReflect.Descriptor instead. -func (*DefaultPasswordLockoutPolicyRequest) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{68} -} - -func (x *DefaultPasswordLockoutPolicyRequest) GetMaxAttempts() uint64 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *DefaultPasswordLockoutPolicyRequest) GetShowLockoutFailure() bool { - if x != nil { - return x.ShowLockoutFailure - } - return false -} - -type DefaultPasswordLockoutPolicyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MaxAttempts uint64 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockoutFailure bool `protobuf:"varint,2,opt,name=show_lockout_failure,json=showLockoutFailure,proto3" json:"show_lockout_failure,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *DefaultPasswordLockoutPolicyView) Reset() { - *x = DefaultPasswordLockoutPolicyView{} - if protoimpl.UnsafeEnabled { - mi := &file_admin_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DefaultPasswordLockoutPolicyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DefaultPasswordLockoutPolicyView) ProtoMessage() {} - -func (x *DefaultPasswordLockoutPolicyView) ProtoReflect() protoreflect.Message { - mi := &file_admin_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DefaultPasswordLockoutPolicyView.ProtoReflect.Descriptor instead. -func (*DefaultPasswordLockoutPolicyView) Descriptor() ([]byte, []int) { - return file_admin_proto_rawDescGZIP(), []int{69} -} - -func (x *DefaultPasswordLockoutPolicyView) GetMaxAttempts() uint64 { - if x != nil { - return x.MaxAttempts - } - return 0 -} - -func (x *DefaultPasswordLockoutPolicyView) GetShowLockoutFailure() bool { - if x != nil { - return x.ShowLockoutFailure - } - return false -} - -func (x *DefaultPasswordLockoutPolicyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *DefaultPasswordLockoutPolicyView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -var File_admin_proto protoreflect.FileDescriptor - -var file_admin_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x20, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x44, 0x12, 0x17, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, - 0x01, 0x52, 0x02, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x10, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, - 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x30, 0x0a, 0x11, 0x55, 0x6e, 0x69, 0x71, 0x75, - 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x69, 0x73, 0x5f, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x08, 0x69, 0x73, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x22, 0xfa, 0x01, 0x0a, 0x03, 0x4f, 0x72, - 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x23, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, - 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0xf1, 0x01, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, - 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x58, 0x0a, 0x0e, 0x73, 0x6f, 0x72, - 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, - 0x01, 0x02, 0x20, 0x00, 0x52, 0x0d, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x03, 0x61, 0x73, 0x63, 0x12, 0x43, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xaf, 0x01, 0x0a, 0x0e, 0x4f, - 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x43, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, - 0x4b, 0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x42, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, - 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8e, 0x02, 0x0a, - 0x11, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x72, 0x67, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, - 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x76, 0x69, - 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, - 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xa6, 0x01, - 0x0a, 0x0f, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x47, 0x0a, 0x03, 0x6f, 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x4a, 0x0a, 0x04, 0x75, 0x73, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, - 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x81, 0x01, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x53, 0x65, - 0x74, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x03, 0x6f, - 0x72, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x52, 0x03, 0x6f, 0x72, 0x67, 0x12, 0x3b, 0x0a, - 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0xef, 0x01, 0x0a, 0x11, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x39, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x1c, 0xfa, 0x42, 0x19, 0x72, 0x17, 0x32, 0x15, 0x5e, 0x5b, 0x5e, 0x5b, - 0x3a, 0x73, 0x70, 0x61, 0x63, 0x65, 0x3a, 0x5d, 0x5d, 0x7b, 0x31, 0x2c, 0x32, 0x30, 0x30, 0x7d, - 0x24, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x05, 0x68, - 0x75, 0x6d, 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, - 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x05, 0x68, 0x75, 0x6d, - 0x61, 0x6e, 0x12, 0x4b, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, - 0x0b, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x8b, 0x05, 0x0a, - 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, - 0x18, 0xc8, 0x01, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, - 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, - 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, - 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x37, - 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, - 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, - 0x03, 0x18, 0xc8, 0x01, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, - 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x12, 0x22, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x0c, 0xfa, 0x42, 0x09, 0x72, 0x07, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x60, 0x01, 0x52, - 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x14, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, - 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, - 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x22, 0x0a, - 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x24, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, - 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x29, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, - 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, - 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, - 0x64, 0x65, 0x12, 0x20, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x06, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, - 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x18, 0x48, - 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x62, 0x0a, 0x14, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xf4, - 0x03, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa8, - 0x03, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x3a, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x75, - 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x05, 0x68, - 0x75, 0x6d, 0x61, 0x6e, 0x12, 0x46, 0x0a, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x0b, 0x0a, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x8f, 0x04, 0x0a, 0x0d, 0x48, 0x75, - 0x6d, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, - 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x69, - 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, - 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, - 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x65, 0x6d, - 0x61, 0x69, 0x6c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, - 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, - 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, - 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x0f, - 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x85, 0x02, 0x0a, 0x12, 0x4d, 0x61, 0x63, - 0x68, 0x69, 0x6e, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x3d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, - 0x65, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x65, - 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x22, 0x47, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x93, 0x02, 0x0a, 0x0c, 0x4f, 0x72, - 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, - 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, - 0x64, 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, - 0x6d, 0x75, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x4d, - 0x75, 0x73, 0x74, 0x42, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, - 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, - 0x97, 0x02, 0x0a, 0x10, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x19, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6d, 0x75, 0x73, 0x74, 0x5f, 0x62, - 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, - 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x4d, 0x75, 0x73, 0x74, 0x42, 0x65, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x13, 0x4f, 0x72, - 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1e, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x19, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x5f, 0x6d, 0x75, 0x73, 0x74, 0x5f, 0x62, 0x65, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x4d, 0x75, 0x73, 0x74, 0x42, 0x65, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x30, 0x0a, - 0x0e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x12, - 0x1e, 0x0a, 0x06, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x05, 0x6f, 0x72, 0x67, 0x49, 0x64, 0x22, - 0x26, 0x0a, 0x0e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0xd4, 0x01, 0x0a, 0x09, 0x49, 0x61, 0x6d, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, - 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, - 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, - 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x4d, - 0x0a, 0x13, 0x41, 0x64, 0x64, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x50, 0x0a, - 0x16, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, - 0x01, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, - 0x3a, 0x0a, 0x16, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, - 0x02, 0x10, 0x01, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9e, 0x02, 0x0a, 0x17, - 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, - 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x40, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, - 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, - 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x76, - 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xea, 0x02, 0x0a, - 0x0d, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, 0x17, - 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x3b, 0x0a, - 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, - 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, - 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x16, 0x49, 0x61, - 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x12, 0x49, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb8, 0x01, - 0x0a, 0x14, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x49, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, - 0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x3f, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x83, 0x01, 0x0a, 0x0d, 0x46, 0x61, 0x69, - 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x23, 0x0a, 0x08, 0x64, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, - 0x24, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x76, 0x69, 0x65, - 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, - 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x5b, - 0x0a, 0x0c, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x4b, - 0x0a, 0x0d, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x0c, 0x66, - 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x22, 0xb9, 0x01, 0x0a, 0x0b, - 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x66, - 0x61, 0x69, 0x6c, 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x53, 0x0a, 0x06, 0x56, 0x69, 0x65, 0x77, 0x49, - 0x44, 0x12, 0x23, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x64, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, - 0x10, 0x01, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x3e, 0x0a, 0x05, - 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x05, 0x76, 0x69, 0x65, 0x77, 0x73, 0x22, 0xb1, 0x01, 0x0a, - 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, 0x69, 0x65, 0x77, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, - 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x63, - 0x65, 0x73, 0x73, 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, - 0x0e, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0d, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x22, 0x20, 0x0a, 0x05, 0x49, 0x64, 0x70, 0x49, 0x44, 0x12, 0x17, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x02, - 0x69, 0x64, 0x22, 0xa7, 0x03, 0x0a, 0x03, 0x49, 0x64, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, - 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x73, 0x74, 0x79, 0x6c, 0x69, - 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x74, 0x79, - 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x79, 0x6c, 0x69, 0x6e, - 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0b, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x0c, - 0x0a, 0x0a, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x86, 0x01, 0x0a, - 0x09, 0x49, 0x64, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x73, 0x74, 0x79, 0x6c, 0x69, - 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x74, 0x79, - 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x79, 0x6c, 0x69, 0x6e, - 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x0d, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, - 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, - 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, - 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x22, 0xd7, 0x03, 0x0a, 0x13, 0x4f, 0x69, - 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x12, 0x1e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x73, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x27, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x0c, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, - 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x64, 0x0a, 0x18, 0x69, 0x64, 0x70, 0x5f, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, - 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x52, 0x15, 0x69, 0x64, 0x70, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x56, 0x0a, 0x10, 0x75, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x70, - 0x69, 0x6e, 0x67, 0x22, 0xfd, 0x02, 0x0a, 0x13, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x06, 0x69, - 0x64, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, - 0x72, 0x02, 0x10, 0x01, 0x52, 0x05, 0x69, 0x64, 0x70, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x09, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, - 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x73, - 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x06, 0x69, 0x73, 0x73, - 0x75, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, - 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x63, 0x6f, 0x70, 0x65, 0x73, 0x12, 0x64, 0x0a, 0x18, 0x69, 0x64, 0x70, 0x5f, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, - 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x52, 0x15, 0x69, 0x64, 0x70, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x56, 0x0a, 0x10, 0x75, - 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x70, - 0x69, 0x6e, 0x67, 0x22, 0x92, 0x02, 0x0a, 0x11, 0x49, 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, - 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, - 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, - 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x53, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x76, 0x69, 0x65, 0x77, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xb4, 0x03, 0x0a, 0x07, 0x49, 0x64, 0x70, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x64, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x73, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0b, 0x73, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x4f, 0x0a, 0x0b, 0x6f, 0x69, 0x64, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x69, - 0x65, 0x77, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x69, 0x64, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x11, 0x0a, 0x0f, - 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x22, - 0x9e, 0x02, 0x0a, 0x11, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, - 0x6f, 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x70, - 0x65, 0x73, 0x12, 0x64, 0x0a, 0x18, 0x69, 0x64, 0x70, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x52, 0x15, 0x69, 0x64, 0x70, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, - 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x56, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x49, 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, - 0x0f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, - 0x22, 0x85, 0x01, 0x0a, 0x10, 0x49, 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x43, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xac, 0x01, 0x0a, 0x0e, 0x49, 0x64, 0x70, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x43, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, - 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x3f, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe0, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x23, - 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, 0x6f, - 0x6c, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, - 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x3f, 0x0a, 0x0d, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, - 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0x68, 0x0a, 0x18, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, - 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0xe4, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, - 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, - 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, - 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x3f, 0x0a, - 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, - 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0xbc, 0x02, 0x0a, 0x12, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, - 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, - 0x6d, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x70, 0x12, - 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, - 0x09, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x6d, 0x66, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x08, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4d, 0x66, 0x61, 0x22, 0xc5, 0x01, 0x0a, 0x19, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x17, 0x61, 0x6c, 0x6c, 0x6f, - 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, - 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x70, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, - 0x61, 0x6c, 0x49, 0x64, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x6d, - 0x66, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x4d, - 0x66, 0x61, 0x22, 0x3c, 0x0a, 0x0d, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x49, 0x44, 0x12, 0x2b, 0x0a, 0x0d, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, - 0x02, 0x10, 0x01, 0x52, 0x0b, 0x69, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, - 0x22, 0xc0, 0x02, 0x0a, 0x16, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x36, 0x0a, 0x17, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x70, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x72, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x12, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x70, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x70, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, - 0x6d, 0x66, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x6f, 0x72, 0x63, 0x65, - 0x4d, 0x66, 0x61, 0x22, 0x81, 0x01, 0x0a, 0x0f, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, 0x22, 0x0a, 0x0d, 0x69, 0x64, 0x70, 0x5f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x69, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x36, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa2, 0x02, 0x0a, 0x19, 0x49, 0x64, 0x70, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x56, 0x69, - 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, - 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x76, - 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x48, 0x0a, 0x18, - 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x69, 0x0a, 0x13, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x52, 0x0a, - 0x0e, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0d, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x73, 0x22, 0x60, 0x0a, 0x0c, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x12, 0x50, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x66, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, - 0x74, 0x6f, 0x72, 0x22, 0x65, 0x0a, 0x12, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x4f, 0x0a, 0x0d, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, - 0x32, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, - 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x5c, 0x0a, 0x0b, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x4d, 0x0a, 0x0c, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, - 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xc6, 0x02, 0x0a, 0x1f, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1d, 0x0a, 0x0a, - 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, - 0x61, 0x73, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x4c, 0x6f, 0x77, 0x65, - 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, - 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, - 0x62, 0x6f, 0x6c, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x26, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, - 0x61, 0x73, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, - 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x4c, 0x6f, 0x77, 0x65, - 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, - 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, - 0x6f, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, - 0x62, 0x6f, 0x6c, 0x22, 0xca, 0x02, 0x0a, 0x23, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, - 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, - 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, - 0x73, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x4c, 0x6f, 0x77, 0x65, 0x72, - 0x63, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, - 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, 0x62, - 0x6f, 0x6c, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, - 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, - 0x22, 0xe4, 0x01, 0x0a, 0x18, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x20, 0x0a, - 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x44, 0x61, 0x79, 0x73, 0x12, - 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x5f, 0x64, - 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, - 0x65, 0x57, 0x61, 0x72, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0x6d, 0x0a, 0x1f, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, - 0x78, 0x5f, 0x61, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x41, 0x67, 0x65, 0x44, 0x61, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x10, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x61, - 0x72, 0x6e, 0x44, 0x61, 0x79, 0x73, 0x22, 0xe8, 0x01, 0x0a, 0x1c, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x20, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, - 0x67, 0x65, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6d, - 0x61, 0x78, 0x41, 0x67, 0x65, 0x44, 0x61, 0x79, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x70, - 0x69, 0x72, 0x65, 0x5f, 0x77, 0x61, 0x72, 0x6e, 0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x61, 0x72, 0x6e, 0x44, - 0x61, 0x79, 0x73, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, - 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, - 0x65, 0x22, 0xf1, 0x01, 0x0a, 0x1c, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x41, 0x74, 0x74, - 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6c, 0x6f, - 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, - 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0x7a, 0x0a, 0x23, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, - 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, - 0x30, 0x0a, 0x14, 0x73, 0x68, 0x6f, 0x77, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, - 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, - 0x68, 0x6f, 0x77, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x22, 0xf5, 0x01, 0x0a, 0x20, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x74, - 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x61, - 0x78, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x68, 0x6f, - 0x77, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x73, 0x68, 0x6f, 0x77, 0x4c, 0x6f, 0x63, - 0x6b, 0x6f, 0x75, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x2a, 0x50, 0x0a, 0x08, 0x4f, 0x72, 0x67, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x13, 0x0a, 0x0f, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, - 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x74, 0x0a, 0x0c, 0x4f, - 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x18, 0x4f, - 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4f, 0x52, 0x47, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, - 0x12, 0x17, 0x0a, 0x13, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, - 0x5f, 0x44, 0x4f, 0x4d, 0x41, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x4f, 0x52, 0x47, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, - 0x03, 0x2a, 0x6c, 0x0a, 0x0f, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x10, 0x00, - 0x12, 0x1f, 0x0a, 0x1b, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, - 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x10, - 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x02, 0x2a, - 0xaf, 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, - 0x15, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x53, 0x45, 0x52, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x16, - 0x0a, 0x12, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x41, 0x43, - 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, - 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x14, 0x0a, - 0x10, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x4b, 0x45, - 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, - 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, - 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x10, - 0x06, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x12, 0x47, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x46, 0x45, - 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, - 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x47, 0x45, 0x4e, 0x44, 0x45, - 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, 0x2a, 0x41, 0x0a, 0x0e, 0x4d, - 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, - 0x16, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4d, 0x41, 0x43, - 0x48, 0x49, 0x4e, 0x45, 0x4b, 0x45, 0x59, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0xbb, - 0x01, 0x0a, 0x12, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x1e, 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, - 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x49, 0x41, 0x4d, - 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, - 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, - 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, - 0x45, 0x59, 0x5f, 0x4c, 0x41, 0x53, 0x54, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, 0x1c, - 0x0a, 0x18, 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, - 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x03, 0x12, 0x1e, 0x0a, 0x1a, - 0x49, 0x41, 0x4d, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, - 0x45, 0x59, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0x04, 0x2a, 0xea, 0x02, 0x0a, - 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x17, 0x0a, - 0x13, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, - 0x55, 0x41, 0x4c, 0x53, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, - 0x54, 0x48, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x02, 0x12, - 0x23, 0x0a, 0x1f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, - 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, - 0x53, 0x45, 0x10, 0x03, 0x12, 0x28, 0x0a, 0x24, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, 0x54, 0x48, - 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, 0x04, 0x12, 0x25, - 0x0a, 0x21, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, - 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, - 0x41, 0x53, 0x45, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, - 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x51, 0x55, 0x41, 0x4c, 0x53, - 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, - 0x4f, 0x44, 0x5f, 0x47, 0x52, 0x45, 0x41, 0x54, 0x45, 0x52, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, - 0x07, 0x12, 0x1a, 0x0a, 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, - 0x44, 0x5f, 0x4c, 0x45, 0x53, 0x53, 0x5f, 0x54, 0x48, 0x41, 0x4e, 0x10, 0x08, 0x12, 0x1a, 0x0a, - 0x16, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x49, 0x53, - 0x5f, 0x4f, 0x4e, 0x45, 0x5f, 0x4f, 0x46, 0x10, 0x09, 0x12, 0x1e, 0x0a, 0x1a, 0x53, 0x45, 0x41, - 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x43, - 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x0a, 0x2a, 0x4b, 0x0a, 0x0e, 0x49, 0x64, 0x70, - 0x53, 0x74, 0x79, 0x6c, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x49, - 0x44, 0x50, 0x53, 0x54, 0x59, 0x4c, 0x49, 0x4e, 0x47, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x49, - 0x44, 0x50, 0x53, 0x54, 0x59, 0x4c, 0x49, 0x4e, 0x47, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x4f, - 0x4f, 0x47, 0x4c, 0x45, 0x10, 0x01, 0x2a, 0x62, 0x0a, 0x08, 0x49, 0x64, 0x70, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x1a, 0x49, 0x44, 0x50, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x49, 0x44, 0x50, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1b, 0x0a, - 0x17, 0x49, 0x44, 0x50, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x79, 0x0a, 0x10, 0x4f, 0x49, - 0x44, 0x43, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x20, - 0x0a, 0x1c, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x41, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x46, 0x49, 0x45, - 0x4c, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x27, 0x0a, 0x23, 0x4f, 0x49, 0x44, 0x43, 0x4d, 0x41, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x46, - 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x50, 0x52, 0x45, 0x46, 0x45, 0x52, 0x52, 0x45, 0x44, 0x5f, 0x55, - 0x53, 0x45, 0x52, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x4f, 0x49, 0x44, - 0x43, 0x4d, 0x41, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x45, 0x4d, - 0x41, 0x49, 0x4c, 0x10, 0x02, 0x2a, 0x63, 0x0a, 0x0c, 0x49, 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x18, 0x49, 0x44, 0x50, 0x53, 0x45, 0x41, 0x52, - 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x1e, 0x0a, 0x1a, 0x49, 0x44, 0x50, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x4b, 0x45, 0x59, 0x5f, 0x49, 0x44, 0x50, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x5f, 0x49, - 0x44, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x44, 0x50, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, - 0x4b, 0x45, 0x59, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x02, 0x2a, 0x46, 0x0a, 0x07, 0x49, 0x64, - 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x44, 0x50, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, - 0x0a, 0x0c, 0x49, 0x44, 0x50, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x49, 0x44, 0x43, 0x10, 0x01, - 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x44, 0x50, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x41, 0x4d, 0x4c, - 0x10, 0x02, 0x2a, 0x68, 0x0a, 0x10, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, - 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x43, 0x4f, - 0x4e, 0x44, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x54, 0x50, - 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x46, 0x41, 0x43, 0x54, - 0x4f, 0x52, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x32, 0x46, 0x10, 0x02, 0x2a, 0x54, 0x0a, 0x0f, - 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1f, 0x0a, 0x1b, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x20, 0x0a, 0x1c, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x4f, 0x52, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x55, 0x32, 0x46, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x50, 0x49, 0x4e, - 0x10, 0x01, 0x32, 0xaa, 0x3c, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x10, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, - 0x12, 0x47, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x0e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x08, 0x12, 0x06, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x4e, 0x0a, 0x08, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, - 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x8f, 0x01, 0x0a, 0x0b, 0x49, 0x73, - 0x4f, 0x72, 0x67, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x4f, 0x72, 0x67, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x6f, - 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x69, 0x73, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x82, 0xb5, 0x18, - 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x70, 0x0a, 0x0a, 0x47, - 0x65, 0x74, 0x4f, 0x72, 0x67, 0x42, 0x79, 0x49, 0x44, 0x12, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x44, 0x1a, 0x1e, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x22, 0x20, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, - 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x8f, 0x01, - 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4f, 0x72, 0x67, 0x73, 0x12, 0x2b, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x22, - 0x0d, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, - 0x2a, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, - 0x8b, 0x01, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x55, 0x70, 0x4f, 0x72, 0x67, 0x12, 0x2a, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, - 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x74, 0x55, 0x70, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x22, 0x0c, 0x2f, - 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x3a, 0x01, 0x2a, 0x82, 0xb5, - 0x18, 0x0b, 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x99, 0x01, - 0x0a, 0x16, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x49, - 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x1a, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, - 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x3a, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x12, 0x1d, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6f, 0x72, - 0x67, 0x69, 0x61, 0x6d, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xb4, 0x01, 0x0a, 0x19, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4f, 0x72, 0x67, 0x49, 0x61, - 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x1a, 0x1d, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, - 0x2f, 0x6f, 0x72, 0x67, 0x69, 0x61, 0x6d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, - 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0xa6, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x1a, - 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, 0x49, - 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x3b, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6f, 0x72, - 0x67, 0x69, 0x61, 0x6d, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xae, 0x01, 0x0a, 0x12, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, - 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, 0x67, - 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x23, 0x22, 0x1e, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, - 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6f, 0x72, 0x67, 0x69, 0x61, - 0x6d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x12, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x72, - 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x23, 0x1a, 0x1e, 0x2f, 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6f, 0x72, 0x67, 0x69, - 0x61, 0x6d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x96, 0x01, 0x0a, 0x12, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4f, 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, - 0x72, 0x67, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x44, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x2a, 0x1e, 0x2f, - 0x6f, 0x72, 0x67, 0x73, 0x2f, 0x7b, 0x6f, 0x72, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6f, 0x72, 0x67, 0x69, 0x61, 0x6d, 0x82, 0xb5, 0x18, - 0x13, 0x0a, 0x11, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x2b, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, - 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x6d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x8f, 0x01, 0x0a, 0x0c, 0x41, - 0x64, 0x64, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x49, 0x61, 0x6d, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x22, 0x08, 0x2f, 0x6d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x9f, 0x01, 0x0a, - 0x0f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x17, 0x1a, 0x12, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, - 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x8f, - 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, - 0x7b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x13, 0x0a, 0x11, 0x69, - 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x12, 0xab, 0x01, 0x0a, 0x10, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x49, 0x61, 0x6d, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x61, 0x6d, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x15, 0x22, 0x10, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x2f, 0x5f, - 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, - 0x61, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x62, - 0x0a, 0x08, 0x47, 0x65, 0x74, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, - 0x69, 0x65, 0x77, 0x73, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x08, 0x12, 0x06, 0x2f, 0x76, - 0x69, 0x65, 0x77, 0x73, 0x82, 0xb5, 0x18, 0x0a, 0x0a, 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, - 0x61, 0x64, 0x12, 0x7c, 0x0a, 0x09, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, - 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x69, 0x65, 0x77, - 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x1f, 0x22, 0x1d, 0x2f, 0x76, 0x69, 0x65, 0x77, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, - 0x62, 0x61, 0x73, 0x65, 0x7d, 0x2f, 0x7b, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x7d, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x77, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x27, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x73, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x12, 0x0d, 0x2f, 0x66, - 0x61, 0x69, 0x6c, 0x65, 0x64, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x82, 0xb5, 0x18, 0x0a, 0x0a, - 0x08, 0x69, 0x61, 0x6d, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xa4, 0x01, 0x0a, 0x11, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, - 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x38, 0x2a, 0x36, 0x2f, 0x66, 0x61, 0x69, 0x6c, - 0x65, 0x64, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x7d, 0x2f, 0x7b, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x2f, - 0x7b, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x7d, 0x82, 0xb5, 0x18, 0x0b, 0x0a, 0x09, 0x69, 0x61, 0x6d, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0x75, 0x0a, 0x07, 0x49, 0x64, 0x70, 0x42, 0x79, 0x49, 0x44, 0x12, 0x20, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x49, 0x44, 0x1a, 0x22, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x56, 0x69, 0x65, - 0x77, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x12, 0x0a, 0x2f, 0x69, 0x64, 0x70, 0x73, - 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, 0x69, 0x61, 0x6d, 0x2e, 0x69, - 0x64, 0x70, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x89, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x1a, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x0f, 0x22, 0x0a, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x6f, 0x69, 0x64, 0x63, 0x3a, 0x01, 0x2a, - 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x69, 0x61, 0x6d, 0x2e, 0x69, 0x64, 0x70, 0x2e, 0x77, 0x72, - 0x69, 0x74, 0x65, 0x12, 0x81, 0x01, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x64, - 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x1e, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x22, 0x28, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x0f, 0x1a, 0x0a, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x69, 0x61, 0x6d, 0x2e, 0x69, 0x64, - 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x49, - 0x44, 0x1a, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, - 0x70, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x1a, 0x16, 0x2f, 0x69, 0x64, 0x70, 0x73, - 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x64, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x69, 0x61, 0x6d, 0x2e, 0x69, 0x64, - 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x13, 0x52, 0x65, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x49, - 0x44, 0x1a, 0x1e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, - 0x70, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x1a, 0x16, 0x2f, 0x69, 0x64, 0x70, 0x73, - 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x2f, 0x5f, 0x72, 0x65, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x69, 0x61, 0x6d, 0x2e, 0x69, 0x64, - 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x72, 0x0a, 0x0f, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x20, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x49, 0x44, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x2a, 0x0a, 0x2f, 0x69, - 0x64, 0x70, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x69, 0x61, - 0x6d, 0x2e, 0x69, 0x64, 0x70, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xa8, 0x01, 0x0a, 0x13, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x69, 0x64, 0x63, 0x49, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x37, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x1a, 0x19, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x7b, 0x69, 0x64, - 0x70, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6f, 0x69, 0x64, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x69, 0x61, 0x6d, 0x2e, 0x69, 0x64, 0x70, - 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x49, 0x64, 0x70, 0x73, 0x12, 0x2b, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x49, 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x64, 0x70, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x22, 0x0d, 0x2f, 0x69, 0x64, 0x70, 0x73, 0x2f, - 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0e, 0x0a, 0x0c, - 0x69, 0x61, 0x6d, 0x2e, 0x69, 0x64, 0x70, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0x90, 0x01, 0x0a, - 0x15, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x31, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, - 0x77, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, - 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, - 0xb0, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x33, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, 0x0f, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, - 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, - 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x12, 0x90, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, - 0x0f, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, - 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xb1, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, - 0x0f, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xd4, 0x01, 0x0a, 0x21, 0x47, 0x65, - 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, - 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x29, 0x22, 0x24, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x2f, 0x69, 0x64, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x11, 0x0a, - 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, - 0x12, 0xb7, 0x01, 0x0a, 0x22, 0x41, 0x64, 0x64, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x54, 0x6f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, - 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, - 0x44, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x64, - 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x44, 0x22, 0x3d, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, - 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x69, 0x64, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xb7, 0x01, 0x0a, 0x27, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x64, 0x70, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x44, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, - 0x2a, 0x2c, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x2f, 0x69, 0x64, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x7b, - 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x82, 0xb5, - 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, - 0x72, 0x69, 0x74, 0x65, 0x12, 0xb0, 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xb7, 0x01, 0x0a, 0x23, 0x41, 0x64, 0x64, 0x53, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x6f, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, - 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x22, 0x3e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, - 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, - 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x28, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x27, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, - 0x4b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x2a, 0x2d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, - 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x66, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x66, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x7d, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, - 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xad, 0x01, 0x0a, - 0x21, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, - 0x72, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2d, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x26, 0x12, 0x24, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, - 0x69, 0x6e, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, - 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x82, 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, - 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x12, 0xb3, 0x01, 0x0a, - 0x22, 0x41, 0x64, 0x64, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, - 0x6f, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x26, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, - 0x74, 0x6f, 0x72, 0x22, 0x3d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x6d, 0x75, 0x6c, - 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, - 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, - 0x74, 0x65, 0x12, 0xb4, 0x01, 0x0a, 0x27, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x75, 0x6c, - 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x26, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, - 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x49, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x66, 0x61, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x66, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x7d, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xb8, 0x01, 0x0a, 0x22, 0x47, 0x65, - 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x3e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, - 0x12, 0x1d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x82, - 0xb5, 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, - 0x72, 0x65, 0x61, 0x64, 0x12, 0xe6, 0x01, 0x0a, 0x25, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x41, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, - 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x3a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, - 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x22, 0x1a, 0x1d, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, - 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, - 0x78, 0x69, 0x74, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, 0x61, 0x6d, - 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x12, 0xa3, 0x01, - 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, - 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x33, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x61, 0x67, 0x65, 0x82, 0xb5, - 0x18, 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x12, 0xca, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, 0x65, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x41, 0x67, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x41, 0x67, - 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x1a, - 0x16, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x2f, 0x61, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, - 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, - 0x12, 0xaf, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x3b, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x56, 0x69, 0x65, 0x77, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1c, 0x12, 0x1a, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x6c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x82, 0xb5, 0x18, - 0x11, 0x0a, 0x0f, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x72, 0x65, - 0x61, 0x64, 0x12, 0xda, 0x01, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, - 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x3e, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x22, 0x3b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x1a, 0x1a, 0x2f, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2f, 0x6c, - 0x6f, 0x63, 0x6b, 0x6f, 0x75, 0x74, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x10, 0x69, - 0x61, 0x6d, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, - 0xba, 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, - 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x67, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x92, 0x41, 0x8e, 0x01, 0x12, 0x41, - 0x0a, 0x0d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x20, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, - 0x2b, 0x12, 0x29, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x32, 0x03, 0x30, 0x2e, - 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_admin_proto_rawDescOnce sync.Once - file_admin_proto_rawDescData = file_admin_proto_rawDesc -) - -func file_admin_proto_rawDescGZIP() []byte { - file_admin_proto_rawDescOnce.Do(func() { - file_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_admin_proto_rawDescData) - }) - return file_admin_proto_rawDescData -} - -var file_admin_proto_enumTypes = make([]protoimpl.EnumInfo, 15) -var file_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 70) -var file_admin_proto_goTypes = []interface{}{ - (OrgState)(0), // 0: caos.zitadel.admin.api.v1.OrgState - (OrgSearchKey)(0), // 1: caos.zitadel.admin.api.v1.OrgSearchKey - (OrgSearchMethod)(0), // 2: caos.zitadel.admin.api.v1.OrgSearchMethod - (UserState)(0), // 3: caos.zitadel.admin.api.v1.UserState - (Gender)(0), // 4: caos.zitadel.admin.api.v1.Gender - (MachineKeyType)(0), // 5: caos.zitadel.admin.api.v1.MachineKeyType - (IamMemberSearchKey)(0), // 6: caos.zitadel.admin.api.v1.IamMemberSearchKey - (SearchMethod)(0), // 7: caos.zitadel.admin.api.v1.SearchMethod - (IdpStylingType)(0), // 8: caos.zitadel.admin.api.v1.IdpStylingType - (IdpState)(0), // 9: caos.zitadel.admin.api.v1.IdpState - (OIDCMappingField)(0), // 10: caos.zitadel.admin.api.v1.OIDCMappingField - (IdpSearchKey)(0), // 11: caos.zitadel.admin.api.v1.IdpSearchKey - (IdpType)(0), // 12: caos.zitadel.admin.api.v1.IdpType - (SecondFactorType)(0), // 13: caos.zitadel.admin.api.v1.SecondFactorType - (MultiFactorType)(0), // 14: caos.zitadel.admin.api.v1.MultiFactorType - (*OrgID)(nil), // 15: caos.zitadel.admin.api.v1.OrgID - (*UniqueOrgRequest)(nil), // 16: caos.zitadel.admin.api.v1.UniqueOrgRequest - (*UniqueOrgResponse)(nil), // 17: caos.zitadel.admin.api.v1.UniqueOrgResponse - (*Org)(nil), // 18: caos.zitadel.admin.api.v1.Org - (*OrgSearchRequest)(nil), // 19: caos.zitadel.admin.api.v1.OrgSearchRequest - (*OrgSearchQuery)(nil), // 20: caos.zitadel.admin.api.v1.OrgSearchQuery - (*OrgSearchResponse)(nil), // 21: caos.zitadel.admin.api.v1.OrgSearchResponse - (*OrgSetUpRequest)(nil), // 22: caos.zitadel.admin.api.v1.OrgSetUpRequest - (*OrgSetUpResponse)(nil), // 23: caos.zitadel.admin.api.v1.OrgSetUpResponse - (*CreateUserRequest)(nil), // 24: caos.zitadel.admin.api.v1.CreateUserRequest - (*CreateHumanRequest)(nil), // 25: caos.zitadel.admin.api.v1.CreateHumanRequest - (*CreateMachineRequest)(nil), // 26: caos.zitadel.admin.api.v1.CreateMachineRequest - (*UserResponse)(nil), // 27: caos.zitadel.admin.api.v1.UserResponse - (*HumanResponse)(nil), // 28: caos.zitadel.admin.api.v1.HumanResponse - (*MachineResponse)(nil), // 29: caos.zitadel.admin.api.v1.MachineResponse - (*MachineKeyResponse)(nil), // 30: caos.zitadel.admin.api.v1.MachineKeyResponse - (*CreateOrgRequest)(nil), // 31: caos.zitadel.admin.api.v1.CreateOrgRequest - (*OrgIamPolicy)(nil), // 32: caos.zitadel.admin.api.v1.OrgIamPolicy - (*OrgIamPolicyView)(nil), // 33: caos.zitadel.admin.api.v1.OrgIamPolicyView - (*OrgIamPolicyRequest)(nil), // 34: caos.zitadel.admin.api.v1.OrgIamPolicyRequest - (*OrgIamPolicyID)(nil), // 35: caos.zitadel.admin.api.v1.OrgIamPolicyID - (*IamMemberRoles)(nil), // 36: caos.zitadel.admin.api.v1.IamMemberRoles - (*IamMember)(nil), // 37: caos.zitadel.admin.api.v1.IamMember - (*AddIamMemberRequest)(nil), // 38: caos.zitadel.admin.api.v1.AddIamMemberRequest - (*ChangeIamMemberRequest)(nil), // 39: caos.zitadel.admin.api.v1.ChangeIamMemberRequest - (*RemoveIamMemberRequest)(nil), // 40: caos.zitadel.admin.api.v1.RemoveIamMemberRequest - (*IamMemberSearchResponse)(nil), // 41: caos.zitadel.admin.api.v1.IamMemberSearchResponse - (*IamMemberView)(nil), // 42: caos.zitadel.admin.api.v1.IamMemberView - (*IamMemberSearchRequest)(nil), // 43: caos.zitadel.admin.api.v1.IamMemberSearchRequest - (*IamMemberSearchQuery)(nil), // 44: caos.zitadel.admin.api.v1.IamMemberSearchQuery - (*FailedEventID)(nil), // 45: caos.zitadel.admin.api.v1.FailedEventID - (*FailedEvents)(nil), // 46: caos.zitadel.admin.api.v1.FailedEvents - (*FailedEvent)(nil), // 47: caos.zitadel.admin.api.v1.FailedEvent - (*ViewID)(nil), // 48: caos.zitadel.admin.api.v1.ViewID - (*Views)(nil), // 49: caos.zitadel.admin.api.v1.Views - (*View)(nil), // 50: caos.zitadel.admin.api.v1.View - (*IdpID)(nil), // 51: caos.zitadel.admin.api.v1.IdpID - (*Idp)(nil), // 52: caos.zitadel.admin.api.v1.Idp - (*IdpUpdate)(nil), // 53: caos.zitadel.admin.api.v1.IdpUpdate - (*OidcIdpConfig)(nil), // 54: caos.zitadel.admin.api.v1.OidcIdpConfig - (*OidcIdpConfigCreate)(nil), // 55: caos.zitadel.admin.api.v1.OidcIdpConfigCreate - (*OidcIdpConfigUpdate)(nil), // 56: caos.zitadel.admin.api.v1.OidcIdpConfigUpdate - (*IdpSearchResponse)(nil), // 57: caos.zitadel.admin.api.v1.IdpSearchResponse - (*IdpView)(nil), // 58: caos.zitadel.admin.api.v1.IdpView - (*OidcIdpConfigView)(nil), // 59: caos.zitadel.admin.api.v1.OidcIdpConfigView - (*IdpSearchRequest)(nil), // 60: caos.zitadel.admin.api.v1.IdpSearchRequest - (*IdpSearchQuery)(nil), // 61: caos.zitadel.admin.api.v1.IdpSearchQuery - (*DefaultLabelPolicy)(nil), // 62: caos.zitadel.admin.api.v1.DefaultLabelPolicy - (*DefaultLabelPolicyUpdate)(nil), // 63: caos.zitadel.admin.api.v1.DefaultLabelPolicyUpdate - (*DefaultLabelPolicyView)(nil), // 64: caos.zitadel.admin.api.v1.DefaultLabelPolicyView - (*DefaultLoginPolicy)(nil), // 65: caos.zitadel.admin.api.v1.DefaultLoginPolicy - (*DefaultLoginPolicyRequest)(nil), // 66: caos.zitadel.admin.api.v1.DefaultLoginPolicyRequest - (*IdpProviderID)(nil), // 67: caos.zitadel.admin.api.v1.IdpProviderID - (*DefaultLoginPolicyView)(nil), // 68: caos.zitadel.admin.api.v1.DefaultLoginPolicyView - (*IdpProviderView)(nil), // 69: caos.zitadel.admin.api.v1.IdpProviderView - (*IdpProviderSearchResponse)(nil), // 70: caos.zitadel.admin.api.v1.IdpProviderSearchResponse - (*IdpProviderSearchRequest)(nil), // 71: caos.zitadel.admin.api.v1.IdpProviderSearchRequest - (*SecondFactorsResult)(nil), // 72: caos.zitadel.admin.api.v1.SecondFactorsResult - (*SecondFactor)(nil), // 73: caos.zitadel.admin.api.v1.SecondFactor - (*MultiFactorsResult)(nil), // 74: caos.zitadel.admin.api.v1.MultiFactorsResult - (*MultiFactor)(nil), // 75: caos.zitadel.admin.api.v1.MultiFactor - (*DefaultPasswordComplexityPolicy)(nil), // 76: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicy - (*DefaultPasswordComplexityPolicyRequest)(nil), // 77: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicyRequest - (*DefaultPasswordComplexityPolicyView)(nil), // 78: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicyView - (*DefaultPasswordAgePolicy)(nil), // 79: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicy - (*DefaultPasswordAgePolicyRequest)(nil), // 80: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicyRequest - (*DefaultPasswordAgePolicyView)(nil), // 81: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicyView - (*DefaultPasswordLockoutPolicy)(nil), // 82: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicy - (*DefaultPasswordLockoutPolicyRequest)(nil), // 83: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicyRequest - (*DefaultPasswordLockoutPolicyView)(nil), // 84: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicyView - (*timestamp.Timestamp)(nil), // 85: google.protobuf.Timestamp - (*empty.Empty)(nil), // 86: google.protobuf.Empty - (*_struct.Struct)(nil), // 87: google.protobuf.Struct -} -var file_admin_proto_depIdxs = []int32{ - 0, // 0: caos.zitadel.admin.api.v1.Org.state:type_name -> caos.zitadel.admin.api.v1.OrgState - 85, // 1: caos.zitadel.admin.api.v1.Org.creation_date:type_name -> google.protobuf.Timestamp - 85, // 2: caos.zitadel.admin.api.v1.Org.change_date:type_name -> google.protobuf.Timestamp - 1, // 3: caos.zitadel.admin.api.v1.OrgSearchRequest.sorting_column:type_name -> caos.zitadel.admin.api.v1.OrgSearchKey - 20, // 4: caos.zitadel.admin.api.v1.OrgSearchRequest.queries:type_name -> caos.zitadel.admin.api.v1.OrgSearchQuery - 1, // 5: caos.zitadel.admin.api.v1.OrgSearchQuery.key:type_name -> caos.zitadel.admin.api.v1.OrgSearchKey - 2, // 6: caos.zitadel.admin.api.v1.OrgSearchQuery.method:type_name -> caos.zitadel.admin.api.v1.OrgSearchMethod - 18, // 7: caos.zitadel.admin.api.v1.OrgSearchResponse.result:type_name -> caos.zitadel.admin.api.v1.Org - 85, // 8: caos.zitadel.admin.api.v1.OrgSearchResponse.view_timestamp:type_name -> google.protobuf.Timestamp - 31, // 9: caos.zitadel.admin.api.v1.OrgSetUpRequest.org:type_name -> caos.zitadel.admin.api.v1.CreateOrgRequest - 24, // 10: caos.zitadel.admin.api.v1.OrgSetUpRequest.user:type_name -> caos.zitadel.admin.api.v1.CreateUserRequest - 18, // 11: caos.zitadel.admin.api.v1.OrgSetUpResponse.org:type_name -> caos.zitadel.admin.api.v1.Org - 27, // 12: caos.zitadel.admin.api.v1.OrgSetUpResponse.user:type_name -> caos.zitadel.admin.api.v1.UserResponse - 25, // 13: caos.zitadel.admin.api.v1.CreateUserRequest.human:type_name -> caos.zitadel.admin.api.v1.CreateHumanRequest - 26, // 14: caos.zitadel.admin.api.v1.CreateUserRequest.machine:type_name -> caos.zitadel.admin.api.v1.CreateMachineRequest - 4, // 15: caos.zitadel.admin.api.v1.CreateHumanRequest.gender:type_name -> caos.zitadel.admin.api.v1.Gender - 3, // 16: caos.zitadel.admin.api.v1.UserResponse.state:type_name -> caos.zitadel.admin.api.v1.UserState - 85, // 17: caos.zitadel.admin.api.v1.UserResponse.creation_date:type_name -> google.protobuf.Timestamp - 85, // 18: caos.zitadel.admin.api.v1.UserResponse.change_date:type_name -> google.protobuf.Timestamp - 28, // 19: caos.zitadel.admin.api.v1.UserResponse.human:type_name -> caos.zitadel.admin.api.v1.HumanResponse - 29, // 20: caos.zitadel.admin.api.v1.UserResponse.machine:type_name -> caos.zitadel.admin.api.v1.MachineResponse - 4, // 21: caos.zitadel.admin.api.v1.HumanResponse.gender:type_name -> caos.zitadel.admin.api.v1.Gender - 30, // 22: caos.zitadel.admin.api.v1.MachineResponse.keys:type_name -> caos.zitadel.admin.api.v1.MachineKeyResponse - 5, // 23: caos.zitadel.admin.api.v1.MachineKeyResponse.type:type_name -> caos.zitadel.admin.api.v1.MachineKeyType - 85, // 24: caos.zitadel.admin.api.v1.MachineKeyResponse.creation_date:type_name -> google.protobuf.Timestamp - 85, // 25: caos.zitadel.admin.api.v1.MachineKeyResponse.expiration_date:type_name -> google.protobuf.Timestamp - 85, // 26: caos.zitadel.admin.api.v1.OrgIamPolicy.creation_date:type_name -> google.protobuf.Timestamp - 85, // 27: caos.zitadel.admin.api.v1.OrgIamPolicy.change_date:type_name -> google.protobuf.Timestamp - 85, // 28: caos.zitadel.admin.api.v1.OrgIamPolicyView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 29: caos.zitadel.admin.api.v1.OrgIamPolicyView.change_date:type_name -> google.protobuf.Timestamp - 85, // 30: caos.zitadel.admin.api.v1.IamMember.change_date:type_name -> google.protobuf.Timestamp - 85, // 31: caos.zitadel.admin.api.v1.IamMember.creation_date:type_name -> google.protobuf.Timestamp - 42, // 32: caos.zitadel.admin.api.v1.IamMemberSearchResponse.result:type_name -> caos.zitadel.admin.api.v1.IamMemberView - 85, // 33: caos.zitadel.admin.api.v1.IamMemberSearchResponse.view_timestamp:type_name -> google.protobuf.Timestamp - 85, // 34: caos.zitadel.admin.api.v1.IamMemberView.change_date:type_name -> google.protobuf.Timestamp - 85, // 35: caos.zitadel.admin.api.v1.IamMemberView.creation_date:type_name -> google.protobuf.Timestamp - 44, // 36: caos.zitadel.admin.api.v1.IamMemberSearchRequest.queries:type_name -> caos.zitadel.admin.api.v1.IamMemberSearchQuery - 6, // 37: caos.zitadel.admin.api.v1.IamMemberSearchQuery.key:type_name -> caos.zitadel.admin.api.v1.IamMemberSearchKey - 7, // 38: caos.zitadel.admin.api.v1.IamMemberSearchQuery.method:type_name -> caos.zitadel.admin.api.v1.SearchMethod - 47, // 39: caos.zitadel.admin.api.v1.FailedEvents.failed_events:type_name -> caos.zitadel.admin.api.v1.FailedEvent - 50, // 40: caos.zitadel.admin.api.v1.Views.views:type_name -> caos.zitadel.admin.api.v1.View - 85, // 41: caos.zitadel.admin.api.v1.View.view_timestamp:type_name -> google.protobuf.Timestamp - 9, // 42: caos.zitadel.admin.api.v1.Idp.state:type_name -> caos.zitadel.admin.api.v1.IdpState - 85, // 43: caos.zitadel.admin.api.v1.Idp.creation_date:type_name -> google.protobuf.Timestamp - 85, // 44: caos.zitadel.admin.api.v1.Idp.change_date:type_name -> google.protobuf.Timestamp - 8, // 45: caos.zitadel.admin.api.v1.Idp.styling_type:type_name -> caos.zitadel.admin.api.v1.IdpStylingType - 54, // 46: caos.zitadel.admin.api.v1.Idp.oidc_config:type_name -> caos.zitadel.admin.api.v1.OidcIdpConfig - 8, // 47: caos.zitadel.admin.api.v1.IdpUpdate.styling_type:type_name -> caos.zitadel.admin.api.v1.IdpStylingType - 8, // 48: caos.zitadel.admin.api.v1.OidcIdpConfigCreate.styling_type:type_name -> caos.zitadel.admin.api.v1.IdpStylingType - 10, // 49: caos.zitadel.admin.api.v1.OidcIdpConfigCreate.idp_display_name_mapping:type_name -> caos.zitadel.admin.api.v1.OIDCMappingField - 10, // 50: caos.zitadel.admin.api.v1.OidcIdpConfigCreate.username_mapping:type_name -> caos.zitadel.admin.api.v1.OIDCMappingField - 10, // 51: caos.zitadel.admin.api.v1.OidcIdpConfigUpdate.idp_display_name_mapping:type_name -> caos.zitadel.admin.api.v1.OIDCMappingField - 10, // 52: caos.zitadel.admin.api.v1.OidcIdpConfigUpdate.username_mapping:type_name -> caos.zitadel.admin.api.v1.OIDCMappingField - 58, // 53: caos.zitadel.admin.api.v1.IdpSearchResponse.result:type_name -> caos.zitadel.admin.api.v1.IdpView - 85, // 54: caos.zitadel.admin.api.v1.IdpSearchResponse.view_timestamp:type_name -> google.protobuf.Timestamp - 9, // 55: caos.zitadel.admin.api.v1.IdpView.state:type_name -> caos.zitadel.admin.api.v1.IdpState - 85, // 56: caos.zitadel.admin.api.v1.IdpView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 57: caos.zitadel.admin.api.v1.IdpView.change_date:type_name -> google.protobuf.Timestamp - 8, // 58: caos.zitadel.admin.api.v1.IdpView.styling_type:type_name -> caos.zitadel.admin.api.v1.IdpStylingType - 59, // 59: caos.zitadel.admin.api.v1.IdpView.oidc_config:type_name -> caos.zitadel.admin.api.v1.OidcIdpConfigView - 10, // 60: caos.zitadel.admin.api.v1.OidcIdpConfigView.idp_display_name_mapping:type_name -> caos.zitadel.admin.api.v1.OIDCMappingField - 10, // 61: caos.zitadel.admin.api.v1.OidcIdpConfigView.username_mapping:type_name -> caos.zitadel.admin.api.v1.OIDCMappingField - 61, // 62: caos.zitadel.admin.api.v1.IdpSearchRequest.queries:type_name -> caos.zitadel.admin.api.v1.IdpSearchQuery - 11, // 63: caos.zitadel.admin.api.v1.IdpSearchQuery.key:type_name -> caos.zitadel.admin.api.v1.IdpSearchKey - 7, // 64: caos.zitadel.admin.api.v1.IdpSearchQuery.method:type_name -> caos.zitadel.admin.api.v1.SearchMethod - 85, // 65: caos.zitadel.admin.api.v1.DefaultLabelPolicy.creation_date:type_name -> google.protobuf.Timestamp - 85, // 66: caos.zitadel.admin.api.v1.DefaultLabelPolicy.change_date:type_name -> google.protobuf.Timestamp - 85, // 67: caos.zitadel.admin.api.v1.DefaultLabelPolicyView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 68: caos.zitadel.admin.api.v1.DefaultLabelPolicyView.change_date:type_name -> google.protobuf.Timestamp - 85, // 69: caos.zitadel.admin.api.v1.DefaultLoginPolicy.creation_date:type_name -> google.protobuf.Timestamp - 85, // 70: caos.zitadel.admin.api.v1.DefaultLoginPolicy.change_date:type_name -> google.protobuf.Timestamp - 85, // 71: caos.zitadel.admin.api.v1.DefaultLoginPolicyView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 72: caos.zitadel.admin.api.v1.DefaultLoginPolicyView.change_date:type_name -> google.protobuf.Timestamp - 12, // 73: caos.zitadel.admin.api.v1.IdpProviderView.type:type_name -> caos.zitadel.admin.api.v1.IdpType - 69, // 74: caos.zitadel.admin.api.v1.IdpProviderSearchResponse.result:type_name -> caos.zitadel.admin.api.v1.IdpProviderView - 85, // 75: caos.zitadel.admin.api.v1.IdpProviderSearchResponse.view_timestamp:type_name -> google.protobuf.Timestamp - 13, // 76: caos.zitadel.admin.api.v1.SecondFactorsResult.second_factors:type_name -> caos.zitadel.admin.api.v1.SecondFactorType - 13, // 77: caos.zitadel.admin.api.v1.SecondFactor.second_factor:type_name -> caos.zitadel.admin.api.v1.SecondFactorType - 14, // 78: caos.zitadel.admin.api.v1.MultiFactorsResult.multi_factors:type_name -> caos.zitadel.admin.api.v1.MultiFactorType - 14, // 79: caos.zitadel.admin.api.v1.MultiFactor.multi_factor:type_name -> caos.zitadel.admin.api.v1.MultiFactorType - 85, // 80: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicy.creation_date:type_name -> google.protobuf.Timestamp - 85, // 81: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicy.change_date:type_name -> google.protobuf.Timestamp - 85, // 82: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicyView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 83: caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicyView.change_date:type_name -> google.protobuf.Timestamp - 85, // 84: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicy.creation_date:type_name -> google.protobuf.Timestamp - 85, // 85: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicy.change_date:type_name -> google.protobuf.Timestamp - 85, // 86: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicyView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 87: caos.zitadel.admin.api.v1.DefaultPasswordAgePolicyView.change_date:type_name -> google.protobuf.Timestamp - 85, // 88: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicy.creation_date:type_name -> google.protobuf.Timestamp - 85, // 89: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicy.change_date:type_name -> google.protobuf.Timestamp - 85, // 90: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicyView.creation_date:type_name -> google.protobuf.Timestamp - 85, // 91: caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicyView.change_date:type_name -> google.protobuf.Timestamp - 86, // 92: caos.zitadel.admin.api.v1.AdminService.Healthz:input_type -> google.protobuf.Empty - 86, // 93: caos.zitadel.admin.api.v1.AdminService.Ready:input_type -> google.protobuf.Empty - 86, // 94: caos.zitadel.admin.api.v1.AdminService.Validate:input_type -> google.protobuf.Empty - 16, // 95: caos.zitadel.admin.api.v1.AdminService.IsOrgUnique:input_type -> caos.zitadel.admin.api.v1.UniqueOrgRequest - 15, // 96: caos.zitadel.admin.api.v1.AdminService.GetOrgByID:input_type -> caos.zitadel.admin.api.v1.OrgID - 19, // 97: caos.zitadel.admin.api.v1.AdminService.SearchOrgs:input_type -> caos.zitadel.admin.api.v1.OrgSearchRequest - 22, // 98: caos.zitadel.admin.api.v1.AdminService.SetUpOrg:input_type -> caos.zitadel.admin.api.v1.OrgSetUpRequest - 86, // 99: caos.zitadel.admin.api.v1.AdminService.GetDefaultOrgIamPolicy:input_type -> google.protobuf.Empty - 34, // 100: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyRequest - 35, // 101: caos.zitadel.admin.api.v1.AdminService.GetOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyID - 34, // 102: caos.zitadel.admin.api.v1.AdminService.CreateOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyRequest - 34, // 103: caos.zitadel.admin.api.v1.AdminService.UpdateOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyRequest - 35, // 104: caos.zitadel.admin.api.v1.AdminService.RemoveOrgIamPolicy:input_type -> caos.zitadel.admin.api.v1.OrgIamPolicyID - 86, // 105: caos.zitadel.admin.api.v1.AdminService.GetIamMemberRoles:input_type -> google.protobuf.Empty - 38, // 106: caos.zitadel.admin.api.v1.AdminService.AddIamMember:input_type -> caos.zitadel.admin.api.v1.AddIamMemberRequest - 39, // 107: caos.zitadel.admin.api.v1.AdminService.ChangeIamMember:input_type -> caos.zitadel.admin.api.v1.ChangeIamMemberRequest - 40, // 108: caos.zitadel.admin.api.v1.AdminService.RemoveIamMember:input_type -> caos.zitadel.admin.api.v1.RemoveIamMemberRequest - 43, // 109: caos.zitadel.admin.api.v1.AdminService.SearchIamMembers:input_type -> caos.zitadel.admin.api.v1.IamMemberSearchRequest - 86, // 110: caos.zitadel.admin.api.v1.AdminService.GetViews:input_type -> google.protobuf.Empty - 48, // 111: caos.zitadel.admin.api.v1.AdminService.ClearView:input_type -> caos.zitadel.admin.api.v1.ViewID - 86, // 112: caos.zitadel.admin.api.v1.AdminService.GetFailedEvents:input_type -> google.protobuf.Empty - 45, // 113: caos.zitadel.admin.api.v1.AdminService.RemoveFailedEvent:input_type -> caos.zitadel.admin.api.v1.FailedEventID - 51, // 114: caos.zitadel.admin.api.v1.AdminService.IdpByID:input_type -> caos.zitadel.admin.api.v1.IdpID - 55, // 115: caos.zitadel.admin.api.v1.AdminService.CreateOidcIdp:input_type -> caos.zitadel.admin.api.v1.OidcIdpConfigCreate - 53, // 116: caos.zitadel.admin.api.v1.AdminService.UpdateIdpConfig:input_type -> caos.zitadel.admin.api.v1.IdpUpdate - 51, // 117: caos.zitadel.admin.api.v1.AdminService.DeactivateIdpConfig:input_type -> caos.zitadel.admin.api.v1.IdpID - 51, // 118: caos.zitadel.admin.api.v1.AdminService.ReactivateIdpConfig:input_type -> caos.zitadel.admin.api.v1.IdpID - 51, // 119: caos.zitadel.admin.api.v1.AdminService.RemoveIdpConfig:input_type -> caos.zitadel.admin.api.v1.IdpID - 56, // 120: caos.zitadel.admin.api.v1.AdminService.UpdateOidcIdpConfig:input_type -> caos.zitadel.admin.api.v1.OidcIdpConfigUpdate - 60, // 121: caos.zitadel.admin.api.v1.AdminService.SearchIdps:input_type -> caos.zitadel.admin.api.v1.IdpSearchRequest - 86, // 122: caos.zitadel.admin.api.v1.AdminService.GetDefaultLabelPolicy:input_type -> google.protobuf.Empty - 63, // 123: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultLabelPolicy:input_type -> caos.zitadel.admin.api.v1.DefaultLabelPolicyUpdate - 86, // 124: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicy:input_type -> google.protobuf.Empty - 66, // 125: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.DefaultLoginPolicyRequest - 71, // 126: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicyIdpProviders:input_type -> caos.zitadel.admin.api.v1.IdpProviderSearchRequest - 67, // 127: caos.zitadel.admin.api.v1.AdminService.AddIdpProviderToDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.IdpProviderID - 67, // 128: caos.zitadel.admin.api.v1.AdminService.RemoveIdpProviderFromDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.IdpProviderID - 86, // 129: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicySecondFactors:input_type -> google.protobuf.Empty - 73, // 130: caos.zitadel.admin.api.v1.AdminService.AddSecondFactorToDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.SecondFactor - 73, // 131: caos.zitadel.admin.api.v1.AdminService.RemoveSecondFactorFromDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.SecondFactor - 86, // 132: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicyMultiFactors:input_type -> google.protobuf.Empty - 75, // 133: caos.zitadel.admin.api.v1.AdminService.AddMultiFactorToDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.MultiFactor - 75, // 134: caos.zitadel.admin.api.v1.AdminService.RemoveMultiFactorFromDefaultLoginPolicy:input_type -> caos.zitadel.admin.api.v1.MultiFactor - 86, // 135: caos.zitadel.admin.api.v1.AdminService.GetDefaultPasswordComplexityPolicy:input_type -> google.protobuf.Empty - 77, // 136: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultPasswordComplexityPolicy:input_type -> caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicyRequest - 86, // 137: caos.zitadel.admin.api.v1.AdminService.GetDefaultPasswordAgePolicy:input_type -> google.protobuf.Empty - 80, // 138: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultPasswordAgePolicy:input_type -> caos.zitadel.admin.api.v1.DefaultPasswordAgePolicyRequest - 86, // 139: caos.zitadel.admin.api.v1.AdminService.GetDefaultPasswordLockoutPolicy:input_type -> google.protobuf.Empty - 83, // 140: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultPasswordLockoutPolicy:input_type -> caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicyRequest - 86, // 141: caos.zitadel.admin.api.v1.AdminService.Healthz:output_type -> google.protobuf.Empty - 86, // 142: caos.zitadel.admin.api.v1.AdminService.Ready:output_type -> google.protobuf.Empty - 87, // 143: caos.zitadel.admin.api.v1.AdminService.Validate:output_type -> google.protobuf.Struct - 17, // 144: caos.zitadel.admin.api.v1.AdminService.IsOrgUnique:output_type -> caos.zitadel.admin.api.v1.UniqueOrgResponse - 18, // 145: caos.zitadel.admin.api.v1.AdminService.GetOrgByID:output_type -> caos.zitadel.admin.api.v1.Org - 21, // 146: caos.zitadel.admin.api.v1.AdminService.SearchOrgs:output_type -> caos.zitadel.admin.api.v1.OrgSearchResponse - 23, // 147: caos.zitadel.admin.api.v1.AdminService.SetUpOrg:output_type -> caos.zitadel.admin.api.v1.OrgSetUpResponse - 33, // 148: caos.zitadel.admin.api.v1.AdminService.GetDefaultOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicyView - 32, // 149: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicy - 33, // 150: caos.zitadel.admin.api.v1.AdminService.GetOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicyView - 32, // 151: caos.zitadel.admin.api.v1.AdminService.CreateOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicy - 32, // 152: caos.zitadel.admin.api.v1.AdminService.UpdateOrgIamPolicy:output_type -> caos.zitadel.admin.api.v1.OrgIamPolicy - 86, // 153: caos.zitadel.admin.api.v1.AdminService.RemoveOrgIamPolicy:output_type -> google.protobuf.Empty - 36, // 154: caos.zitadel.admin.api.v1.AdminService.GetIamMemberRoles:output_type -> caos.zitadel.admin.api.v1.IamMemberRoles - 37, // 155: caos.zitadel.admin.api.v1.AdminService.AddIamMember:output_type -> caos.zitadel.admin.api.v1.IamMember - 37, // 156: caos.zitadel.admin.api.v1.AdminService.ChangeIamMember:output_type -> caos.zitadel.admin.api.v1.IamMember - 86, // 157: caos.zitadel.admin.api.v1.AdminService.RemoveIamMember:output_type -> google.protobuf.Empty - 41, // 158: caos.zitadel.admin.api.v1.AdminService.SearchIamMembers:output_type -> caos.zitadel.admin.api.v1.IamMemberSearchResponse - 49, // 159: caos.zitadel.admin.api.v1.AdminService.GetViews:output_type -> caos.zitadel.admin.api.v1.Views - 86, // 160: caos.zitadel.admin.api.v1.AdminService.ClearView:output_type -> google.protobuf.Empty - 46, // 161: caos.zitadel.admin.api.v1.AdminService.GetFailedEvents:output_type -> caos.zitadel.admin.api.v1.FailedEvents - 86, // 162: caos.zitadel.admin.api.v1.AdminService.RemoveFailedEvent:output_type -> google.protobuf.Empty - 58, // 163: caos.zitadel.admin.api.v1.AdminService.IdpByID:output_type -> caos.zitadel.admin.api.v1.IdpView - 52, // 164: caos.zitadel.admin.api.v1.AdminService.CreateOidcIdp:output_type -> caos.zitadel.admin.api.v1.Idp - 52, // 165: caos.zitadel.admin.api.v1.AdminService.UpdateIdpConfig:output_type -> caos.zitadel.admin.api.v1.Idp - 52, // 166: caos.zitadel.admin.api.v1.AdminService.DeactivateIdpConfig:output_type -> caos.zitadel.admin.api.v1.Idp - 52, // 167: caos.zitadel.admin.api.v1.AdminService.ReactivateIdpConfig:output_type -> caos.zitadel.admin.api.v1.Idp - 86, // 168: caos.zitadel.admin.api.v1.AdminService.RemoveIdpConfig:output_type -> google.protobuf.Empty - 54, // 169: caos.zitadel.admin.api.v1.AdminService.UpdateOidcIdpConfig:output_type -> caos.zitadel.admin.api.v1.OidcIdpConfig - 57, // 170: caos.zitadel.admin.api.v1.AdminService.SearchIdps:output_type -> caos.zitadel.admin.api.v1.IdpSearchResponse - 64, // 171: caos.zitadel.admin.api.v1.AdminService.GetDefaultLabelPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultLabelPolicyView - 62, // 172: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultLabelPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultLabelPolicy - 68, // 173: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultLoginPolicyView - 65, // 174: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultLoginPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultLoginPolicy - 70, // 175: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicyIdpProviders:output_type -> caos.zitadel.admin.api.v1.IdpProviderSearchResponse - 67, // 176: caos.zitadel.admin.api.v1.AdminService.AddIdpProviderToDefaultLoginPolicy:output_type -> caos.zitadel.admin.api.v1.IdpProviderID - 86, // 177: caos.zitadel.admin.api.v1.AdminService.RemoveIdpProviderFromDefaultLoginPolicy:output_type -> google.protobuf.Empty - 72, // 178: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicySecondFactors:output_type -> caos.zitadel.admin.api.v1.SecondFactorsResult - 73, // 179: caos.zitadel.admin.api.v1.AdminService.AddSecondFactorToDefaultLoginPolicy:output_type -> caos.zitadel.admin.api.v1.SecondFactor - 86, // 180: caos.zitadel.admin.api.v1.AdminService.RemoveSecondFactorFromDefaultLoginPolicy:output_type -> google.protobuf.Empty - 74, // 181: caos.zitadel.admin.api.v1.AdminService.GetDefaultLoginPolicyMultiFactors:output_type -> caos.zitadel.admin.api.v1.MultiFactorsResult - 75, // 182: caos.zitadel.admin.api.v1.AdminService.AddMultiFactorToDefaultLoginPolicy:output_type -> caos.zitadel.admin.api.v1.MultiFactor - 86, // 183: caos.zitadel.admin.api.v1.AdminService.RemoveMultiFactorFromDefaultLoginPolicy:output_type -> google.protobuf.Empty - 78, // 184: caos.zitadel.admin.api.v1.AdminService.GetDefaultPasswordComplexityPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicyView - 76, // 185: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultPasswordComplexityPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultPasswordComplexityPolicy - 81, // 186: caos.zitadel.admin.api.v1.AdminService.GetDefaultPasswordAgePolicy:output_type -> caos.zitadel.admin.api.v1.DefaultPasswordAgePolicyView - 79, // 187: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultPasswordAgePolicy:output_type -> caos.zitadel.admin.api.v1.DefaultPasswordAgePolicy - 84, // 188: caos.zitadel.admin.api.v1.AdminService.GetDefaultPasswordLockoutPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicyView - 82, // 189: caos.zitadel.admin.api.v1.AdminService.UpdateDefaultPasswordLockoutPolicy:output_type -> caos.zitadel.admin.api.v1.DefaultPasswordLockoutPolicy - 141, // [141:190] is the sub-list for method output_type - 92, // [92:141] is the sub-list for method input_type - 92, // [92:92] is the sub-list for extension type_name - 92, // [92:92] is the sub-list for extension extendee - 0, // [0:92] is the sub-list for field type_name -} - -func init() { file_admin_proto_init() } -func file_admin_proto_init() { - if File_admin_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UniqueOrgRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UniqueOrgResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Org); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSetUpRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgSetUpResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateUserRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateHumanRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateMachineRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HumanResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MachineResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MachineKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateOrgRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OrgIamPolicyID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberRoles); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMember); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddIamMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeIamMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveIamMemberRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IamMemberSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailedEventID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailedEvents); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FailedEvent); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ViewID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Views); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*View); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Idp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OidcIdpConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OidcIdpConfigCreate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OidcIdpConfigUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OidcIdpConfigView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultLabelPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultLabelPolicyUpdate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultLabelPolicyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultLoginPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultLoginPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpProviderID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultLoginPolicyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpProviderView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpProviderSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdpProviderSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecondFactorsResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SecondFactor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MultiFactorsResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MultiFactor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordComplexityPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordComplexityPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordComplexityPolicyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordAgePolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordAgePolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordAgePolicyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordLockoutPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordLockoutPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_admin_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DefaultPasswordLockoutPolicyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_admin_proto_msgTypes[9].OneofWrappers = []interface{}{ - (*CreateUserRequest_Human)(nil), - (*CreateUserRequest_Machine)(nil), - } - file_admin_proto_msgTypes[12].OneofWrappers = []interface{}{ - (*UserResponse_Human)(nil), - (*UserResponse_Machine)(nil), - } - file_admin_proto_msgTypes[37].OneofWrappers = []interface{}{ - (*Idp_OidcConfig)(nil), - } - file_admin_proto_msgTypes[43].OneofWrappers = []interface{}{ - (*IdpView_OidcConfig)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_admin_proto_rawDesc, - NumEnums: 15, - NumMessages: 70, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_admin_proto_goTypes, - DependencyIndexes: file_admin_proto_depIdxs, - EnumInfos: file_admin_proto_enumTypes, - MessageInfos: file_admin_proto_msgTypes, - }.Build() - File_admin_proto = out.File - file_admin_proto_rawDesc = nil - file_admin_proto_goTypes = nil - file_admin_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// AdminServiceClient is the client API for AdminService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AdminServiceClient interface { - // Healthz returns status OK as soon as the service started - Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - // Ready returns status OK as soon as all dependent services are available - Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) - //ORG - IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) - GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) - SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) - SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) - //ORG_IAM_POLICY - GetDefaultOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicyView, error) - UpdateDefaultOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) - GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicyView, error) - CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) - UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) - RemoveOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) - GetIamMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IamMemberRoles, error) - AddIamMember(ctx context.Context, in *AddIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) - ChangeIamMember(ctx context.Context, in *ChangeIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) - RemoveIamMember(ctx context.Context, in *RemoveIamMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest, opts ...grpc.CallOption) (*IamMemberSearchResponse, error) - GetViews(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Views, error) - ClearView(ctx context.Context, in *ViewID, opts ...grpc.CallOption) (*empty.Empty, error) - GetFailedEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FailedEvents, error) - RemoveFailedEvent(ctx context.Context, in *FailedEventID, opts ...grpc.CallOption) (*empty.Empty, error) - IdpByID(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*IdpView, error) - CreateOidcIdp(ctx context.Context, in *OidcIdpConfigCreate, opts ...grpc.CallOption) (*Idp, error) - UpdateIdpConfig(ctx context.Context, in *IdpUpdate, opts ...grpc.CallOption) (*Idp, error) - DeactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) - ReactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) - RemoveIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*empty.Empty, error) - UpdateOidcIdpConfig(ctx context.Context, in *OidcIdpConfigUpdate, opts ...grpc.CallOption) (*OidcIdpConfig, error) - SearchIdps(ctx context.Context, in *IdpSearchRequest, opts ...grpc.CallOption) (*IdpSearchResponse, error) - GetDefaultLabelPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultLabelPolicyView, error) - UpdateDefaultLabelPolicy(ctx context.Context, in *DefaultLabelPolicyUpdate, opts ...grpc.CallOption) (*DefaultLabelPolicy, error) - GetDefaultLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultLoginPolicyView, error) - UpdateDefaultLoginPolicy(ctx context.Context, in *DefaultLoginPolicyRequest, opts ...grpc.CallOption) (*DefaultLoginPolicy, error) - GetDefaultLoginPolicyIdpProviders(ctx context.Context, in *IdpProviderSearchRequest, opts ...grpc.CallOption) (*IdpProviderSearchResponse, error) - AddIdpProviderToDefaultLoginPolicy(ctx context.Context, in *IdpProviderID, opts ...grpc.CallOption) (*IdpProviderID, error) - RemoveIdpProviderFromDefaultLoginPolicy(ctx context.Context, in *IdpProviderID, opts ...grpc.CallOption) (*empty.Empty, error) - GetDefaultLoginPolicySecondFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SecondFactorsResult, error) - AddSecondFactorToDefaultLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*SecondFactor, error) - RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*empty.Empty, error) - GetDefaultLoginPolicyMultiFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactorsResult, error) - AddMultiFactorToDefaultLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*MultiFactor, error) - RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*empty.Empty, error) - GetDefaultPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultPasswordComplexityPolicyView, error) - UpdateDefaultPasswordComplexityPolicy(ctx context.Context, in *DefaultPasswordComplexityPolicyRequest, opts ...grpc.CallOption) (*DefaultPasswordComplexityPolicy, error) - GetDefaultPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultPasswordAgePolicyView, error) - UpdateDefaultPasswordAgePolicy(ctx context.Context, in *DefaultPasswordAgePolicyRequest, opts ...grpc.CallOption) (*DefaultPasswordAgePolicy, error) - GetDefaultPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultPasswordLockoutPolicyView, error) - UpdateDefaultPasswordLockoutPolicy(ctx context.Context, in *DefaultPasswordLockoutPolicyRequest, opts ...grpc.CallOption) (*DefaultPasswordLockoutPolicy, error) -} - -type adminServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient { - return &adminServiceClient{cc} -} - -func (c *adminServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Healthz", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Ready", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { - out := new(_struct.Struct) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/Validate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) IsOrgUnique(ctx context.Context, in *UniqueOrgRequest, opts ...grpc.CallOption) (*UniqueOrgResponse, error) { - out := new(UniqueOrgResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetOrgByID(ctx context.Context, in *OrgID, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SearchOrgs(ctx context.Context, in *OrgSearchRequest, opts ...grpc.CallOption) (*OrgSearchResponse, error) { - out := new(OrgSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SetUpOrg(ctx context.Context, in *OrgSetUpRequest, opts ...grpc.CallOption) (*OrgSetUpResponse, error) { - out := new(OrgSetUpResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicyView, error) { - out := new(OrgIamPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateDefaultOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*OrgIamPolicyView, error) { - out := new(OrgIamPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateOrgIamPolicy(ctx context.Context, in *OrgIamPolicyRequest, opts ...grpc.CallOption) (*OrgIamPolicy, error) { - out := new(OrgIamPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveOrgIamPolicy(ctx context.Context, in *OrgIamPolicyID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetIamMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IamMemberRoles, error) { - out := new(IamMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) AddIamMember(ctx context.Context, in *AddIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) { - out := new(IamMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/AddIamMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ChangeIamMember(ctx context.Context, in *ChangeIamMemberRequest, opts ...grpc.CallOption) (*IamMember, error) { - out := new(IamMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveIamMember(ctx context.Context, in *RemoveIamMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SearchIamMembers(ctx context.Context, in *IamMemberSearchRequest, opts ...grpc.CallOption) (*IamMemberSearchResponse, error) { - out := new(IamMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetViews(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Views, error) { - out := new(Views) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetViews", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ClearView(ctx context.Context, in *ViewID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ClearView", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetFailedEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FailedEvents, error) { - out := new(FailedEvents) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveFailedEvent(ctx context.Context, in *FailedEventID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) IdpByID(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*IdpView, error) { - out := new(IdpView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/IdpByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateOidcIdp(ctx context.Context, in *OidcIdpConfigCreate, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/CreateOidcIdp", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateIdpConfig(ctx context.Context, in *IdpUpdate, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/DeactivateIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ReactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/ReactivateIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateOidcIdpConfig(ctx context.Context, in *OidcIdpConfigUpdate, opts ...grpc.CallOption) (*OidcIdpConfig, error) { - out := new(OidcIdpConfig) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateOidcIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) SearchIdps(ctx context.Context, in *IdpSearchRequest, opts ...grpc.CallOption) (*IdpSearchResponse, error) { - out := new(IdpSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/SearchIdps", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultLabelPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultLabelPolicyView, error) { - out := new(DefaultLabelPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLabelPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateDefaultLabelPolicy(ctx context.Context, in *DefaultLabelPolicyUpdate, opts ...grpc.CallOption) (*DefaultLabelPolicy, error) { - out := new(DefaultLabelPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultLabelPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultLoginPolicyView, error) { - out := new(DefaultLoginPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateDefaultLoginPolicy(ctx context.Context, in *DefaultLoginPolicyRequest, opts ...grpc.CallOption) (*DefaultLoginPolicy, error) { - out := new(DefaultLoginPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultLoginPolicyIdpProviders(ctx context.Context, in *IdpProviderSearchRequest, opts ...grpc.CallOption) (*IdpProviderSearchResponse, error) { - out := new(IdpProviderSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicyIdpProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) AddIdpProviderToDefaultLoginPolicy(ctx context.Context, in *IdpProviderID, opts ...grpc.CallOption) (*IdpProviderID, error) { - out := new(IdpProviderID) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/AddIdpProviderToDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveIdpProviderFromDefaultLoginPolicy(ctx context.Context, in *IdpProviderID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveIdpProviderFromDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultLoginPolicySecondFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SecondFactorsResult, error) { - out := new(SecondFactorsResult) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicySecondFactors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) AddSecondFactorToDefaultLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*SecondFactor, error) { - out := new(SecondFactor) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/AddSecondFactorToDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveSecondFactorFromDefaultLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveSecondFactorFromDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultLoginPolicyMultiFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactorsResult, error) { - out := new(MultiFactorsResult) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicyMultiFactors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) AddMultiFactorToDefaultLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*MultiFactor, error) { - out := new(MultiFactor) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/AddMultiFactorToDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RemoveMultiFactorFromDefaultLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/RemoveMultiFactorFromDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultPasswordComplexityPolicyView, error) { - out := new(DefaultPasswordComplexityPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateDefaultPasswordComplexityPolicy(ctx context.Context, in *DefaultPasswordComplexityPolicyRequest, opts ...grpc.CallOption) (*DefaultPasswordComplexityPolicy, error) { - out := new(DefaultPasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultPasswordAgePolicyView, error) { - out := new(DefaultPasswordAgePolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateDefaultPasswordAgePolicy(ctx context.Context, in *DefaultPasswordAgePolicyRequest, opts ...grpc.CallOption) (*DefaultPasswordAgePolicy, error) { - out := new(DefaultPasswordAgePolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDefaultPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DefaultPasswordLockoutPolicyView, error) { - out := new(DefaultPasswordLockoutPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateDefaultPasswordLockoutPolicy(ctx context.Context, in *DefaultPasswordLockoutPolicyRequest, opts ...grpc.CallOption) (*DefaultPasswordLockoutPolicy, error) { - out := new(DefaultPasswordLockoutPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AdminServiceServer is the server API for AdminService service. -type AdminServiceServer interface { - // Healthz returns status OK as soon as the service started - Healthz(context.Context, *empty.Empty) (*empty.Empty, error) - // Ready returns status OK as soon as all dependent services are available - Ready(context.Context, *empty.Empty) (*empty.Empty, error) - Validate(context.Context, *empty.Empty) (*_struct.Struct, error) - //ORG - IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error) - GetOrgByID(context.Context, *OrgID) (*Org, error) - SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error) - SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error) - //ORG_IAM_POLICY - GetDefaultOrgIamPolicy(context.Context, *empty.Empty) (*OrgIamPolicyView, error) - UpdateDefaultOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) - GetOrgIamPolicy(context.Context, *OrgIamPolicyID) (*OrgIamPolicyView, error) - CreateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) - UpdateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) - RemoveOrgIamPolicy(context.Context, *OrgIamPolicyID) (*empty.Empty, error) - GetIamMemberRoles(context.Context, *empty.Empty) (*IamMemberRoles, error) - AddIamMember(context.Context, *AddIamMemberRequest) (*IamMember, error) - ChangeIamMember(context.Context, *ChangeIamMemberRequest) (*IamMember, error) - RemoveIamMember(context.Context, *RemoveIamMemberRequest) (*empty.Empty, error) - SearchIamMembers(context.Context, *IamMemberSearchRequest) (*IamMemberSearchResponse, error) - GetViews(context.Context, *empty.Empty) (*Views, error) - ClearView(context.Context, *ViewID) (*empty.Empty, error) - GetFailedEvents(context.Context, *empty.Empty) (*FailedEvents, error) - RemoveFailedEvent(context.Context, *FailedEventID) (*empty.Empty, error) - IdpByID(context.Context, *IdpID) (*IdpView, error) - CreateOidcIdp(context.Context, *OidcIdpConfigCreate) (*Idp, error) - UpdateIdpConfig(context.Context, *IdpUpdate) (*Idp, error) - DeactivateIdpConfig(context.Context, *IdpID) (*Idp, error) - ReactivateIdpConfig(context.Context, *IdpID) (*Idp, error) - RemoveIdpConfig(context.Context, *IdpID) (*empty.Empty, error) - UpdateOidcIdpConfig(context.Context, *OidcIdpConfigUpdate) (*OidcIdpConfig, error) - SearchIdps(context.Context, *IdpSearchRequest) (*IdpSearchResponse, error) - GetDefaultLabelPolicy(context.Context, *empty.Empty) (*DefaultLabelPolicyView, error) - UpdateDefaultLabelPolicy(context.Context, *DefaultLabelPolicyUpdate) (*DefaultLabelPolicy, error) - GetDefaultLoginPolicy(context.Context, *empty.Empty) (*DefaultLoginPolicyView, error) - UpdateDefaultLoginPolicy(context.Context, *DefaultLoginPolicyRequest) (*DefaultLoginPolicy, error) - GetDefaultLoginPolicyIdpProviders(context.Context, *IdpProviderSearchRequest) (*IdpProviderSearchResponse, error) - AddIdpProviderToDefaultLoginPolicy(context.Context, *IdpProviderID) (*IdpProviderID, error) - RemoveIdpProviderFromDefaultLoginPolicy(context.Context, *IdpProviderID) (*empty.Empty, error) - GetDefaultLoginPolicySecondFactors(context.Context, *empty.Empty) (*SecondFactorsResult, error) - AddSecondFactorToDefaultLoginPolicy(context.Context, *SecondFactor) (*SecondFactor, error) - RemoveSecondFactorFromDefaultLoginPolicy(context.Context, *SecondFactor) (*empty.Empty, error) - GetDefaultLoginPolicyMultiFactors(context.Context, *empty.Empty) (*MultiFactorsResult, error) - AddMultiFactorToDefaultLoginPolicy(context.Context, *MultiFactor) (*MultiFactor, error) - RemoveMultiFactorFromDefaultLoginPolicy(context.Context, *MultiFactor) (*empty.Empty, error) - GetDefaultPasswordComplexityPolicy(context.Context, *empty.Empty) (*DefaultPasswordComplexityPolicyView, error) - UpdateDefaultPasswordComplexityPolicy(context.Context, *DefaultPasswordComplexityPolicyRequest) (*DefaultPasswordComplexityPolicy, error) - GetDefaultPasswordAgePolicy(context.Context, *empty.Empty) (*DefaultPasswordAgePolicyView, error) - UpdateDefaultPasswordAgePolicy(context.Context, *DefaultPasswordAgePolicyRequest) (*DefaultPasswordAgePolicy, error) - GetDefaultPasswordLockoutPolicy(context.Context, *empty.Empty) (*DefaultPasswordLockoutPolicyView, error) - UpdateDefaultPasswordLockoutPolicy(context.Context, *DefaultPasswordLockoutPolicyRequest) (*DefaultPasswordLockoutPolicy, error) -} - -// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAdminServiceServer struct { -} - -func (*UnimplementedAdminServiceServer) Healthz(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") -} -func (*UnimplementedAdminServiceServer) Ready(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") -} -func (*UnimplementedAdminServiceServer) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") -} -func (*UnimplementedAdminServiceServer) IsOrgUnique(context.Context, *UniqueOrgRequest) (*UniqueOrgResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsOrgUnique not implemented") -} -func (*UnimplementedAdminServiceServer) GetOrgByID(context.Context, *OrgID) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgByID not implemented") -} -func (*UnimplementedAdminServiceServer) SearchOrgs(context.Context, *OrgSearchRequest) (*OrgSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchOrgs not implemented") -} -func (*UnimplementedAdminServiceServer) SetUpOrg(context.Context, *OrgSetUpRequest) (*OrgSetUpResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetUpOrg not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultOrgIamPolicy(context.Context, *empty.Empty) (*OrgIamPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateDefaultOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetOrgIamPolicy(context.Context, *OrgIamPolicyID) (*OrgIamPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) CreateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateOrgIamPolicy(context.Context, *OrgIamPolicyRequest) (*OrgIamPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveOrgIamPolicy(context.Context, *OrgIamPolicyID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveOrgIamPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetIamMemberRoles(context.Context, *empty.Empty) (*IamMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetIamMemberRoles not implemented") -} -func (*UnimplementedAdminServiceServer) AddIamMember(context.Context, *AddIamMemberRequest) (*IamMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddIamMember not implemented") -} -func (*UnimplementedAdminServiceServer) ChangeIamMember(context.Context, *ChangeIamMemberRequest) (*IamMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeIamMember not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveIamMember(context.Context, *RemoveIamMemberRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveIamMember not implemented") -} -func (*UnimplementedAdminServiceServer) SearchIamMembers(context.Context, *IamMemberSearchRequest) (*IamMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchIamMembers not implemented") -} -func (*UnimplementedAdminServiceServer) GetViews(context.Context, *empty.Empty) (*Views, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetViews not implemented") -} -func (*UnimplementedAdminServiceServer) ClearView(context.Context, *ViewID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ClearView not implemented") -} -func (*UnimplementedAdminServiceServer) GetFailedEvents(context.Context, *empty.Empty) (*FailedEvents, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFailedEvents not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveFailedEvent(context.Context, *FailedEventID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveFailedEvent not implemented") -} -func (*UnimplementedAdminServiceServer) IdpByID(context.Context, *IdpID) (*IdpView, error) { - return nil, status.Errorf(codes.Unimplemented, "method IdpByID not implemented") -} -func (*UnimplementedAdminServiceServer) CreateOidcIdp(context.Context, *OidcIdpConfigCreate) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOidcIdp not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateIdpConfig(context.Context, *IdpUpdate) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateIdpConfig not implemented") -} -func (*UnimplementedAdminServiceServer) DeactivateIdpConfig(context.Context, *IdpID) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateIdpConfig not implemented") -} -func (*UnimplementedAdminServiceServer) ReactivateIdpConfig(context.Context, *IdpID) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateIdpConfig not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveIdpConfig(context.Context, *IdpID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveIdpConfig not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateOidcIdpConfig(context.Context, *OidcIdpConfigUpdate) (*OidcIdpConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOidcIdpConfig not implemented") -} -func (*UnimplementedAdminServiceServer) SearchIdps(context.Context, *IdpSearchRequest) (*IdpSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchIdps not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultLabelPolicy(context.Context, *empty.Empty) (*DefaultLabelPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLabelPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateDefaultLabelPolicy(context.Context, *DefaultLabelPolicyUpdate) (*DefaultLabelPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultLabelPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultLoginPolicy(context.Context, *empty.Empty) (*DefaultLoginPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateDefaultLoginPolicy(context.Context, *DefaultLoginPolicyRequest) (*DefaultLoginPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultLoginPolicyIdpProviders(context.Context, *IdpProviderSearchRequest) (*IdpProviderSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLoginPolicyIdpProviders not implemented") -} -func (*UnimplementedAdminServiceServer) AddIdpProviderToDefaultLoginPolicy(context.Context, *IdpProviderID) (*IdpProviderID, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddIdpProviderToDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveIdpProviderFromDefaultLoginPolicy(context.Context, *IdpProviderID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveIdpProviderFromDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultLoginPolicySecondFactors(context.Context, *empty.Empty) (*SecondFactorsResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLoginPolicySecondFactors not implemented") -} -func (*UnimplementedAdminServiceServer) AddSecondFactorToDefaultLoginPolicy(context.Context, *SecondFactor) (*SecondFactor, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddSecondFactorToDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveSecondFactorFromDefaultLoginPolicy(context.Context, *SecondFactor) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveSecondFactorFromDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultLoginPolicyMultiFactors(context.Context, *empty.Empty) (*MultiFactorsResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLoginPolicyMultiFactors not implemented") -} -func (*UnimplementedAdminServiceServer) AddMultiFactorToDefaultLoginPolicy(context.Context, *MultiFactor) (*MultiFactor, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMultiFactorToDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) RemoveMultiFactorFromDefaultLoginPolicy(context.Context, *MultiFactor) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMultiFactorFromDefaultLoginPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultPasswordComplexityPolicy(context.Context, *empty.Empty) (*DefaultPasswordComplexityPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPasswordComplexityPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateDefaultPasswordComplexityPolicy(context.Context, *DefaultPasswordComplexityPolicyRequest) (*DefaultPasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultPasswordComplexityPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultPasswordAgePolicy(context.Context, *empty.Empty) (*DefaultPasswordAgePolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPasswordAgePolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateDefaultPasswordAgePolicy(context.Context, *DefaultPasswordAgePolicyRequest) (*DefaultPasswordAgePolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultPasswordAgePolicy not implemented") -} -func (*UnimplementedAdminServiceServer) GetDefaultPasswordLockoutPolicy(context.Context, *empty.Empty) (*DefaultPasswordLockoutPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPasswordLockoutPolicy not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateDefaultPasswordLockoutPolicy(context.Context, *DefaultPasswordLockoutPolicyRequest) (*DefaultPasswordLockoutPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateDefaultPasswordLockoutPolicy not implemented") -} - -func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { - s.RegisterService(&_AdminService_serviceDesc, srv) -} - -func _AdminService_Healthz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).Healthz(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Healthz", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).Healthz(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_Ready_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).Ready(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Ready", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).Ready(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).Validate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/Validate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).Validate(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_IsOrgUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UniqueOrgRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).IsOrgUnique(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/IsOrgUnique", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).IsOrgUnique(ctx, req.(*UniqueOrgRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetOrgByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetOrgByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetOrgByID(ctx, req.(*OrgID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SearchOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SearchOrgs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchOrgs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SearchOrgs(ctx, req.(*OrgSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SetUpOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgSetUpRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SetUpOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SetUpOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SetUpOrg(ctx, req.(*OrgSetUpRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultOrgIamPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateDefaultOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateDefaultOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateDefaultOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetOrgIamPolicy(ctx, req.(*OrgIamPolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/CreateOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateOrgIamPolicy(ctx, req.(*OrgIamPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgIamPolicyID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveOrgIamPolicy(ctx, req.(*OrgIamPolicyID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetIamMemberRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetIamMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetIamMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetIamMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_AddIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddIamMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).AddIamMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/AddIamMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).AddIamMember(ctx, req.(*AddIamMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ChangeIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeIamMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ChangeIamMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ChangeIamMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ChangeIamMember(ctx, req.(*ChangeIamMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveIamMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveIamMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveIamMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveIamMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveIamMember(ctx, req.(*RemoveIamMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SearchIamMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IamMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SearchIamMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchIamMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SearchIamMembers(ctx, req.(*IamMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetViews_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetViews(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetViews", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetViews(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ClearView_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ViewID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ClearView(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ClearView", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ClearView(ctx, req.(*ViewID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetFailedEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetFailedEvents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetFailedEvents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetFailedEvents(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveFailedEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FailedEventID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveFailedEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveFailedEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveFailedEvent(ctx, req.(*FailedEventID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_IdpByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).IdpByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/IdpByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).IdpByID(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateOidcIdp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OidcIdpConfigCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateOidcIdp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/CreateOidcIdp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateOidcIdp(ctx, req.(*OidcIdpConfigCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateIdpConfig(ctx, req.(*IdpUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeactivateIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeactivateIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/DeactivateIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeactivateIdpConfig(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ReactivateIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ReactivateIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/ReactivateIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ReactivateIdpConfig(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveIdpConfig(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateOidcIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OidcIdpConfigUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateOidcIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateOidcIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateOidcIdpConfig(ctx, req.(*OidcIdpConfigUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_SearchIdps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).SearchIdps(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/SearchIdps", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).SearchIdps(ctx, req.(*IdpSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultLabelPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultLabelPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLabelPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultLabelPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateDefaultLabelPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DefaultLabelPolicyUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateDefaultLabelPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultLabelPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateDefaultLabelPolicy(ctx, req.(*DefaultLabelPolicyUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultLoginPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DefaultLoginPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateDefaultLoginPolicy(ctx, req.(*DefaultLoginPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultLoginPolicyIdpProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpProviderSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultLoginPolicyIdpProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicyIdpProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultLoginPolicyIdpProviders(ctx, req.(*IdpProviderSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_AddIdpProviderToDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpProviderID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).AddIdpProviderToDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/AddIdpProviderToDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).AddIdpProviderToDefaultLoginPolicy(ctx, req.(*IdpProviderID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveIdpProviderFromDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpProviderID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveIdpProviderFromDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveIdpProviderFromDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveIdpProviderFromDefaultLoginPolicy(ctx, req.(*IdpProviderID)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultLoginPolicySecondFactors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultLoginPolicySecondFactors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicySecondFactors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultLoginPolicySecondFactors(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_AddSecondFactorToDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SecondFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).AddSecondFactorToDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/AddSecondFactorToDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).AddSecondFactorToDefaultLoginPolicy(ctx, req.(*SecondFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveSecondFactorFromDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SecondFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveSecondFactorFromDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveSecondFactorFromDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveSecondFactorFromDefaultLoginPolicy(ctx, req.(*SecondFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultLoginPolicyMultiFactors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultLoginPolicyMultiFactors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultLoginPolicyMultiFactors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultLoginPolicyMultiFactors(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_AddMultiFactorToDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MultiFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).AddMultiFactorToDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/AddMultiFactorToDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).AddMultiFactorToDefaultLoginPolicy(ctx, req.(*MultiFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RemoveMultiFactorFromDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MultiFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RemoveMultiFactorFromDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/RemoveMultiFactorFromDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RemoveMultiFactorFromDefaultLoginPolicy(ctx, req.(*MultiFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultPasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultPasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultPasswordComplexityPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateDefaultPasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DefaultPasswordComplexityPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateDefaultPasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateDefaultPasswordComplexityPolicy(ctx, req.(*DefaultPasswordComplexityPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultPasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultPasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultPasswordAgePolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateDefaultPasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DefaultPasswordAgePolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateDefaultPasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateDefaultPasswordAgePolicy(ctx, req.(*DefaultPasswordAgePolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDefaultPasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDefaultPasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/GetDefaultPasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDefaultPasswordLockoutPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateDefaultPasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DefaultPasswordLockoutPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateDefaultPasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.admin.api.v1.AdminService/UpdateDefaultPasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateDefaultPasswordLockoutPolicy(ctx, req.(*DefaultPasswordLockoutPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AdminService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "caos.zitadel.admin.api.v1.AdminService", - HandlerType: (*AdminServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Healthz", - Handler: _AdminService_Healthz_Handler, - }, - { - MethodName: "Ready", - Handler: _AdminService_Ready_Handler, - }, - { - MethodName: "Validate", - Handler: _AdminService_Validate_Handler, - }, - { - MethodName: "IsOrgUnique", - Handler: _AdminService_IsOrgUnique_Handler, - }, - { - MethodName: "GetOrgByID", - Handler: _AdminService_GetOrgByID_Handler, - }, - { - MethodName: "SearchOrgs", - Handler: _AdminService_SearchOrgs_Handler, - }, - { - MethodName: "SetUpOrg", - Handler: _AdminService_SetUpOrg_Handler, - }, - { - MethodName: "GetDefaultOrgIamPolicy", - Handler: _AdminService_GetDefaultOrgIamPolicy_Handler, - }, - { - MethodName: "UpdateDefaultOrgIamPolicy", - Handler: _AdminService_UpdateDefaultOrgIamPolicy_Handler, - }, - { - MethodName: "GetOrgIamPolicy", - Handler: _AdminService_GetOrgIamPolicy_Handler, - }, - { - MethodName: "CreateOrgIamPolicy", - Handler: _AdminService_CreateOrgIamPolicy_Handler, - }, - { - MethodName: "UpdateOrgIamPolicy", - Handler: _AdminService_UpdateOrgIamPolicy_Handler, - }, - { - MethodName: "RemoveOrgIamPolicy", - Handler: _AdminService_RemoveOrgIamPolicy_Handler, - }, - { - MethodName: "GetIamMemberRoles", - Handler: _AdminService_GetIamMemberRoles_Handler, - }, - { - MethodName: "AddIamMember", - Handler: _AdminService_AddIamMember_Handler, - }, - { - MethodName: "ChangeIamMember", - Handler: _AdminService_ChangeIamMember_Handler, - }, - { - MethodName: "RemoveIamMember", - Handler: _AdminService_RemoveIamMember_Handler, - }, - { - MethodName: "SearchIamMembers", - Handler: _AdminService_SearchIamMembers_Handler, - }, - { - MethodName: "GetViews", - Handler: _AdminService_GetViews_Handler, - }, - { - MethodName: "ClearView", - Handler: _AdminService_ClearView_Handler, - }, - { - MethodName: "GetFailedEvents", - Handler: _AdminService_GetFailedEvents_Handler, - }, - { - MethodName: "RemoveFailedEvent", - Handler: _AdminService_RemoveFailedEvent_Handler, - }, - { - MethodName: "IdpByID", - Handler: _AdminService_IdpByID_Handler, - }, - { - MethodName: "CreateOidcIdp", - Handler: _AdminService_CreateOidcIdp_Handler, - }, - { - MethodName: "UpdateIdpConfig", - Handler: _AdminService_UpdateIdpConfig_Handler, - }, - { - MethodName: "DeactivateIdpConfig", - Handler: _AdminService_DeactivateIdpConfig_Handler, - }, - { - MethodName: "ReactivateIdpConfig", - Handler: _AdminService_ReactivateIdpConfig_Handler, - }, - { - MethodName: "RemoveIdpConfig", - Handler: _AdminService_RemoveIdpConfig_Handler, - }, - { - MethodName: "UpdateOidcIdpConfig", - Handler: _AdminService_UpdateOidcIdpConfig_Handler, - }, - { - MethodName: "SearchIdps", - Handler: _AdminService_SearchIdps_Handler, - }, - { - MethodName: "GetDefaultLabelPolicy", - Handler: _AdminService_GetDefaultLabelPolicy_Handler, - }, - { - MethodName: "UpdateDefaultLabelPolicy", - Handler: _AdminService_UpdateDefaultLabelPolicy_Handler, - }, - { - MethodName: "GetDefaultLoginPolicy", - Handler: _AdminService_GetDefaultLoginPolicy_Handler, - }, - { - MethodName: "UpdateDefaultLoginPolicy", - Handler: _AdminService_UpdateDefaultLoginPolicy_Handler, - }, - { - MethodName: "GetDefaultLoginPolicyIdpProviders", - Handler: _AdminService_GetDefaultLoginPolicyIdpProviders_Handler, - }, - { - MethodName: "AddIdpProviderToDefaultLoginPolicy", - Handler: _AdminService_AddIdpProviderToDefaultLoginPolicy_Handler, - }, - { - MethodName: "RemoveIdpProviderFromDefaultLoginPolicy", - Handler: _AdminService_RemoveIdpProviderFromDefaultLoginPolicy_Handler, - }, - { - MethodName: "GetDefaultLoginPolicySecondFactors", - Handler: _AdminService_GetDefaultLoginPolicySecondFactors_Handler, - }, - { - MethodName: "AddSecondFactorToDefaultLoginPolicy", - Handler: _AdminService_AddSecondFactorToDefaultLoginPolicy_Handler, - }, - { - MethodName: "RemoveSecondFactorFromDefaultLoginPolicy", - Handler: _AdminService_RemoveSecondFactorFromDefaultLoginPolicy_Handler, - }, - { - MethodName: "GetDefaultLoginPolicyMultiFactors", - Handler: _AdminService_GetDefaultLoginPolicyMultiFactors_Handler, - }, - { - MethodName: "AddMultiFactorToDefaultLoginPolicy", - Handler: _AdminService_AddMultiFactorToDefaultLoginPolicy_Handler, - }, - { - MethodName: "RemoveMultiFactorFromDefaultLoginPolicy", - Handler: _AdminService_RemoveMultiFactorFromDefaultLoginPolicy_Handler, - }, - { - MethodName: "GetDefaultPasswordComplexityPolicy", - Handler: _AdminService_GetDefaultPasswordComplexityPolicy_Handler, - }, - { - MethodName: "UpdateDefaultPasswordComplexityPolicy", - Handler: _AdminService_UpdateDefaultPasswordComplexityPolicy_Handler, - }, - { - MethodName: "GetDefaultPasswordAgePolicy", - Handler: _AdminService_GetDefaultPasswordAgePolicy_Handler, - }, - { - MethodName: "UpdateDefaultPasswordAgePolicy", - Handler: _AdminService_UpdateDefaultPasswordAgePolicy_Handler, - }, - { - MethodName: "GetDefaultPasswordLockoutPolicy", - Handler: _AdminService_GetDefaultPasswordLockoutPolicy_Handler, - }, - { - MethodName: "UpdateDefaultPasswordLockoutPolicy", - Handler: _AdminService_UpdateDefaultPasswordLockoutPolicy_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "admin.proto", -} diff --git a/pkg/grpc/admin/admin.pb.gw.go b/pkg/grpc/admin/admin.pb.gw.go deleted file mode 100644 index 7fff4bfdb4..0000000000 --- a/pkg/grpc/admin/admin.pb.gw.go +++ /dev/null @@ -1,4236 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: admin.proto - -/* -Package admin is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package admin - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/empty" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage - -func request_AdminService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Healthz(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Healthz(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Ready(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Ready(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Validate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Validate(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AdminService_IsOrgUnique_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AdminService_IsOrgUnique_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UniqueOrgRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_IsOrgUnique_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.IsOrgUnique(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_IsOrgUnique_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UniqueOrgRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_IsOrgUnique_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.IsOrgUnique(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetOrgByID_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetOrgByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetOrgByID_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetOrgByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_SearchOrgs_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchOrgs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_SearchOrgs_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchOrgs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_SetUpOrg_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgSetUpRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SetUpOrg(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_SetUpOrg_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgSetUpRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SetUpOrg(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateDefaultOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateDefaultOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateDefaultOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateDefaultOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := client.GetOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := server.GetOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := client.CreateOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := server.CreateOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := client.UpdateOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := server.UpdateOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := client.RemoveOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgIamPolicyID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["org_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "org_id") - } - - protoReq.OrgId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "org_id", err) - } - - msg, err := server.RemoveOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetIamMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetIamMemberRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetIamMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetIamMemberRoles(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_AddIamMember_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddIamMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddIamMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_AddIamMember_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddIamMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddIamMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_ChangeIamMember_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeIamMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.ChangeIamMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ChangeIamMember_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeIamMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.ChangeIamMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveIamMember_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveIamMemberRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.RemoveIamMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveIamMember_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveIamMemberRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.RemoveIamMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_SearchIamMembers_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IamMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchIamMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_SearchIamMembers_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IamMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchIamMembers(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetViews_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetViews(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetViews_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetViews(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_ClearView_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ViewID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["database"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database") - } - - protoReq.Database, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database", err) - } - - val, ok = pathParams["view_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "view_name") - } - - protoReq.ViewName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "view_name", err) - } - - msg, err := client.ClearView(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ClearView_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ViewID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["database"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database") - } - - protoReq.Database, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database", err) - } - - val, ok = pathParams["view_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "view_name") - } - - protoReq.ViewName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "view_name", err) - } - - msg, err := server.ClearView(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetFailedEvents_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetFailedEvents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetFailedEvents_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetFailedEvents(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveFailedEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq FailedEventID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["database"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database") - } - - protoReq.Database, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database", err) - } - - val, ok = pathParams["view_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "view_name") - } - - protoReq.ViewName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "view_name", err) - } - - val, ok = pathParams["failed_sequence"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "failed_sequence") - } - - protoReq.FailedSequence, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "failed_sequence", err) - } - - msg, err := client.RemoveFailedEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveFailedEvent_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq FailedEventID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["database"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "database") - } - - protoReq.Database, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "database", err) - } - - val, ok = pathParams["view_name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "view_name") - } - - protoReq.ViewName, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "view_name", err) - } - - val, ok = pathParams["failed_sequence"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "failed_sequence") - } - - protoReq.FailedSequence, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "failed_sequence", err) - } - - msg, err := server.RemoveFailedEvent(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_IdpByID_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.IdpByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_IdpByID_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.IdpByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_CreateOidcIdp_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateOidcIdp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_CreateOidcIdp_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateOidcIdp(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_DeactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_DeactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_ReactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_ReactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateOidcIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_id") - } - - protoReq.IdpId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_id", err) - } - - msg, err := client.UpdateOidcIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateOidcIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_id") - } - - protoReq.IdpId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_id", err) - } - - msg, err := server.UpdateOidcIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_SearchIdps_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchIdps(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_SearchIdps_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchIdps(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultLabelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultLabelPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultLabelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultLabelPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateDefaultLabelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultLabelPolicyUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateDefaultLabelPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateDefaultLabelPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultLabelPolicyUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateDefaultLabelPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultLoginPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultLoginPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultLoginPolicyIdpProviders_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetDefaultLoginPolicyIdpProviders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultLoginPolicyIdpProviders_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetDefaultLoginPolicyIdpProviders(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_AddIdpProviderToDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddIdpProviderToDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_AddIdpProviderToDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddIdpProviderToDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - msg, err := client.RemoveIdpProviderFromDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - msg, err := server.RemoveIdpProviderFromDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultLoginPolicySecondFactors_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultLoginPolicySecondFactors(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultLoginPolicySecondFactors_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultLoginPolicySecondFactors(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_AddSecondFactorToDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddSecondFactorToDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_AddSecondFactorToDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddSecondFactorToDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["second_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "second_factor") - } - - e, err = runtime.Enum(val, SecondFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "second_factor", err) - } - - protoReq.SecondFactor = SecondFactorType(e) - - msg, err := client.RemoveSecondFactorFromDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["second_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "second_factor") - } - - e, err = runtime.Enum(val, SecondFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "second_factor", err) - } - - protoReq.SecondFactor = SecondFactorType(e) - - msg, err := server.RemoveSecondFactorFromDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultLoginPolicyMultiFactors_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultLoginPolicyMultiFactors(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultLoginPolicyMultiFactors_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultLoginPolicyMultiFactors(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_AddMultiFactorToDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMultiFactorToDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_AddMultiFactorToDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMultiFactorToDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["multi_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "multi_factor") - } - - e, err = runtime.Enum(val, MultiFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "multi_factor", err) - } - - protoReq.MultiFactor = MultiFactorType(e) - - msg, err := client.RemoveMultiFactorFromDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["multi_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "multi_factor") - } - - e, err = runtime.Enum(val, MultiFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "multi_factor", err) - } - - protoReq.MultiFactor = MultiFactorType(e) - - msg, err := server.RemoveMultiFactorFromDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultPasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultPasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateDefaultPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultPasswordComplexityPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateDefaultPasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateDefaultPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultPasswordComplexityPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateDefaultPasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultPasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultPasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateDefaultPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultPasswordAgePolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateDefaultPasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateDefaultPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultPasswordAgePolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateDefaultPasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_GetDefaultPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultPasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_GetDefaultPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultPasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AdminService_UpdateDefaultPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultPasswordLockoutPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateDefaultPasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AdminService_UpdateDefaultPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AdminServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq DefaultPasswordLockoutPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateDefaultPasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterAdminServiceHandlerServer registers the http handlers for service AdminService to "mux". -// UnaryRPC :call AdminServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -func RegisterAdminServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdminServiceServer) error { - - mux.Handle("GET", pattern_AdminService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_Healthz_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_Ready_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_Validate_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_IsOrgUnique_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_IsOrgUnique_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_IsOrgUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetOrgByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetOrgByID_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetOrgByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SearchOrgs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_SearchOrgs_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SearchOrgs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SetUpOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_SetUpOrg_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SetUpOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateDefaultOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetIamMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetIamMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetIamMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddIamMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_AddIamMember_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_ChangeIamMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ChangeIamMember_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ChangeIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveIamMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveIamMember_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SearchIamMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_SearchIamMembers_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SearchIamMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetViews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetViews_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetViews_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_ClearView_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ClearView_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ClearView_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetFailedEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetFailedEvents_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetFailedEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveFailedEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveFailedEvent_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveFailedEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_IdpByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_IdpByID_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_IdpByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateOidcIdp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_CreateOidcIdp_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateOidcIdp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_DeactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_DeactivateIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_ReactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_ReactivateIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ReactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateOidcIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateOidcIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateOidcIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SearchIdps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_SearchIdps_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SearchIdps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLabelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultLabelPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLabelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultLabelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateDefaultLabelPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultLabelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_GetDefaultLoginPolicyIdpProviders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultLoginPolicyIdpProviders_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicyIdpProviders_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddIdpProviderToDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_AddIdpProviderToDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddIdpProviderToDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLoginPolicySecondFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultLoginPolicySecondFactors_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicySecondFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddSecondFactorToDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_AddSecondFactorToDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddSecondFactorToDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLoginPolicyMultiFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultLoginPolicyMultiFactors_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicyMultiFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddMultiFactorToDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_AddMultiFactorToDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddMultiFactorToDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultPasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateDefaultPasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultPasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateDefaultPasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_GetDefaultPasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AdminService_UpdateDefaultPasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAdminServiceHandler(ctx, mux, conn) -} - -// RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAdminServiceHandlerClient(ctx, mux, NewAdminServiceClient(conn)) -} - -// RegisterAdminServiceHandlerClient registers the http handlers for service AdminService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AdminServiceClient" to call the correct interceptors. -func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error { - - mux.Handle("GET", pattern_AdminService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_Healthz_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_Ready_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_Validate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_IsOrgUnique_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_IsOrgUnique_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_IsOrgUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetOrgByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetOrgByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetOrgByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SearchOrgs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_SearchOrgs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SearchOrgs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SetUpOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_SetUpOrg_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SetUpOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateDefaultOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetIamMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetIamMemberRoles_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetIamMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddIamMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_AddIamMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_ChangeIamMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ChangeIamMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ChangeIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveIamMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveIamMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveIamMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SearchIamMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_SearchIamMembers_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SearchIamMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetViews_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetViews_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetViews_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_ClearView_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ClearView_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ClearView_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetFailedEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetFailedEvents_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetFailedEvents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveFailedEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveFailedEvent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveFailedEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_IdpByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_IdpByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_IdpByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateOidcIdp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateOidcIdp_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateOidcIdp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_DeactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeactivateIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_ReactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ReactivateIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ReactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateOidcIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateOidcIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateOidcIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_SearchIdps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_SearchIdps_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_SearchIdps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLabelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultLabelPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLabelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultLabelPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateDefaultLabelPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultLabelPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_GetDefaultLoginPolicyIdpProviders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultLoginPolicyIdpProviders_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicyIdpProviders_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddIdpProviderToDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_AddIdpProviderToDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddIdpProviderToDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLoginPolicySecondFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultLoginPolicySecondFactors_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicySecondFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddSecondFactorToDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_AddSecondFactorToDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddSecondFactorToDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultLoginPolicyMultiFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultLoginPolicyMultiFactors_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultLoginPolicyMultiFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_AddMultiFactorToDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_AddMultiFactorToDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_AddMultiFactorToDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultPasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateDefaultPasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultPasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateDefaultPasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDefaultPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDefaultPasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDefaultPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateDefaultPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateDefaultPasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateDefaultPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AdminService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_IsOrgUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_isunique"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetOrgByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"orgs", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_SearchOrgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_SetUpOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "_setup"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "default", "policies", "orgiam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateDefaultOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "default", "policies", "orgiam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"orgs", "org_id", "policies", "orgiam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_CreateOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"orgs", "org_id", "policies", "orgiam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"orgs", "org_id", "policies", "orgiam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"orgs", "org_id", "policies", "orgiam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetIamMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_AddIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"members"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_ChangeIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveIamMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_SearchIamMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetViews_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"views"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_ClearView_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2}, []string{"views", "database", "view_name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetFailedEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"failedevents"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveFailedEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"failedevents", "database", "view_name", "failed_sequence"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_IdpByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"idps", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_CreateOidcIdp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"idps", "oidc"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"idps", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_DeactivateIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"idps", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_ReactivateIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"idps", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"idps", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateOidcIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"idps", "idp_id", "oidcconfig"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_SearchIdps_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"idps", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultLabelPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"policies", "label"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateDefaultLabelPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"policies", "label"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultLoginPolicyIdpProviders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"policies", "login", "idpproviders", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_AddIdpProviderToDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "login", "idpproviders"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"policies", "login", "idpproviders", "idp_config_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultLoginPolicySecondFactors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"policies", "login", "secondfactors", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_AddSecondFactorToDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "login", "secondfactors"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"policies", "login", "secondfactors", "second_factor"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultLoginPolicyMultiFactors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"policies", "login", "multifactors", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_AddMultiFactorToDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "login", "multifactors"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"policies", "login", "multifactors", "multi_factor"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateDefaultPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultPasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateDefaultPasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_GetDefaultPasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AdminService_UpdateDefaultPasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_AdminService_Healthz_0 = runtime.ForwardResponseMessage - - forward_AdminService_Ready_0 = runtime.ForwardResponseMessage - - forward_AdminService_Validate_0 = runtime.ForwardResponseMessage - - forward_AdminService_IsOrgUnique_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetOrgByID_0 = runtime.ForwardResponseMessage - - forward_AdminService_SearchOrgs_0 = runtime.ForwardResponseMessage - - forward_AdminService_SetUpOrg_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateDefaultOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetIamMemberRoles_0 = runtime.ForwardResponseMessage - - forward_AdminService_AddIamMember_0 = runtime.ForwardResponseMessage - - forward_AdminService_ChangeIamMember_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveIamMember_0 = runtime.ForwardResponseMessage - - forward_AdminService_SearchIamMembers_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetViews_0 = runtime.ForwardResponseMessage - - forward_AdminService_ClearView_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetFailedEvents_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveFailedEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_IdpByID_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateOidcIdp_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateIdpConfig_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeactivateIdpConfig_0 = runtime.ForwardResponseMessage - - forward_AdminService_ReactivateIdpConfig_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveIdpConfig_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateOidcIdpConfig_0 = runtime.ForwardResponseMessage - - forward_AdminService_SearchIdps_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultLabelPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateDefaultLabelPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultLoginPolicyIdpProviders_0 = runtime.ForwardResponseMessage - - forward_AdminService_AddIdpProviderToDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveIdpProviderFromDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultLoginPolicySecondFactors_0 = runtime.ForwardResponseMessage - - forward_AdminService_AddSecondFactorToDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveSecondFactorFromDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultLoginPolicyMultiFactors_0 = runtime.ForwardResponseMessage - - forward_AdminService_AddMultiFactorToDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_RemoveMultiFactorFromDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultPasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateDefaultPasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultPasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateDefaultPasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDefaultPasswordLockoutPolicy_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateDefaultPasswordLockoutPolicy_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/grpc/admin/admin.pb.validate.go b/pkg/grpc/admin/admin.pb.validate.go deleted file mode 100644 index 12f3aeab6f..0000000000 --- a/pkg/grpc/admin/admin.pb.validate.go +++ /dev/null @@ -1,6095 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: admin.proto - -package admin - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _admin_uuidPattern = regexp.MustCompile("^[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}$") - -// Validate checks the field values on OrgID with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *OrgID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return OrgIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// OrgIDValidationError is the validation error returned by OrgID.Validate if -// the designated constraints aren't met. -type OrgIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgIDValidationError) ErrorName() string { return "OrgIDValidationError" } - -// Error satisfies the builtin error interface -func (e OrgIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgIDValidationError{} - -// Validate checks the field values on UniqueOrgRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UniqueOrgRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetName()) < 1 { - return UniqueOrgRequestValidationError{ - field: "Name", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetDomain()) < 1 { - return UniqueOrgRequestValidationError{ - field: "Domain", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// UniqueOrgRequestValidationError is the validation error returned by -// UniqueOrgRequest.Validate if the designated constraints aren't met. -type UniqueOrgRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UniqueOrgRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UniqueOrgRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UniqueOrgRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UniqueOrgRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UniqueOrgRequestValidationError) ErrorName() string { return "UniqueOrgRequestValidationError" } - -// Error satisfies the builtin error interface -func (e UniqueOrgRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUniqueOrgRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UniqueOrgRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UniqueOrgRequestValidationError{} - -// Validate checks the field values on UniqueOrgResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UniqueOrgResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IsUnique - - return nil -} - -// UniqueOrgResponseValidationError is the validation error returned by -// UniqueOrgResponse.Validate if the designated constraints aren't met. -type UniqueOrgResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UniqueOrgResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UniqueOrgResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UniqueOrgResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UniqueOrgResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UniqueOrgResponseValidationError) ErrorName() string { - return "UniqueOrgResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UniqueOrgResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUniqueOrgResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UniqueOrgResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UniqueOrgResponseValidationError{} - -// Validate checks the field values on Org with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *Org) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Domain - - return nil -} - -// OrgValidationError is the validation error returned by Org.Validate if the -// designated constraints aren't met. -type OrgValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgValidationError) ErrorName() string { return "OrgValidationError" } - -// Error satisfies the builtin error interface -func (e OrgValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrg.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgValidationError{} - -// Validate checks the field values on OrgSearchRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - if _, ok := _OrgSearchRequest_SortingColumn_NotInLookup[m.GetSortingColumn()]; ok { - return OrgSearchRequestValidationError{ - field: "SortingColumn", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Asc - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// OrgSearchRequestValidationError is the validation error returned by -// OrgSearchRequest.Validate if the designated constraints aren't met. -type OrgSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgSearchRequestValidationError) ErrorName() string { return "OrgSearchRequestValidationError" } - -// Error satisfies the builtin error interface -func (e OrgSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgSearchRequestValidationError{} - -var _OrgSearchRequest_SortingColumn_NotInLookup = map[OrgSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on OrgSearchQuery with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OrgSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _OrgSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return OrgSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// OrgSearchQueryValidationError is the validation error returned by -// OrgSearchQuery.Validate if the designated constraints aren't met. -type OrgSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgSearchQueryValidationError) ErrorName() string { return "OrgSearchQueryValidationError" } - -// Error satisfies the builtin error interface -func (e OrgSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgSearchQueryValidationError{} - -var _OrgSearchQuery_Key_NotInLookup = map[OrgSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on OrgSearchResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgSearchResponseValidationError is the validation error returned by -// OrgSearchResponse.Validate if the designated constraints aren't met. -type OrgSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgSearchResponseValidationError) ErrorName() string { - return "OrgSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgSearchResponseValidationError{} - -// Validate checks the field values on OrgSetUpRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgSetUpRequest) Validate() error { - if m == nil { - return nil - } - - if m.GetOrg() == nil { - return OrgSetUpRequestValidationError{ - field: "Org", - reason: "value is required", - } - } - - if v, ok := interface{}(m.GetOrg()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSetUpRequestValidationError{ - field: "Org", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if m.GetUser() == nil { - return OrgSetUpRequestValidationError{ - field: "User", - reason: "value is required", - } - } - - if v, ok := interface{}(m.GetUser()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSetUpRequestValidationError{ - field: "User", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgSetUpRequestValidationError is the validation error returned by -// OrgSetUpRequest.Validate if the designated constraints aren't met. -type OrgSetUpRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgSetUpRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgSetUpRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgSetUpRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgSetUpRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgSetUpRequestValidationError) ErrorName() string { return "OrgSetUpRequestValidationError" } - -// Error satisfies the builtin error interface -func (e OrgSetUpRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgSetUpRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgSetUpRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgSetUpRequestValidationError{} - -// Validate checks the field values on OrgSetUpResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgSetUpResponse) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetOrg()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSetUpResponseValidationError{ - field: "Org", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetUser()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgSetUpResponseValidationError{ - field: "User", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgSetUpResponseValidationError is the validation error returned by -// OrgSetUpResponse.Validate if the designated constraints aren't met. -type OrgSetUpResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgSetUpResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgSetUpResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgSetUpResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgSetUpResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgSetUpResponseValidationError) ErrorName() string { return "OrgSetUpResponseValidationError" } - -// Error satisfies the builtin error interface -func (e OrgSetUpResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgSetUpResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgSetUpResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgSetUpResponseValidationError{} - -// Validate checks the field values on CreateUserRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *CreateUserRequest) Validate() error { - if m == nil { - return nil - } - - if !_CreateUserRequest_UserName_Pattern.MatchString(m.GetUserName()) { - return CreateUserRequestValidationError{ - field: "UserName", - reason: "value does not match regex pattern \"^[^[:space:]]{1,200}$\"", - } - } - - switch m.User.(type) { - - case *CreateUserRequest_Human: - - if v, ok := interface{}(m.GetHuman()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateUserRequestValidationError{ - field: "Human", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *CreateUserRequest_Machine: - - if v, ok := interface{}(m.GetMachine()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateUserRequestValidationError{ - field: "Machine", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - return CreateUserRequestValidationError{ - field: "User", - reason: "value is required", - } - - } - - return nil -} - -// CreateUserRequestValidationError is the validation error returned by -// CreateUserRequest.Validate if the designated constraints aren't met. -type CreateUserRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateUserRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateUserRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateUserRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateUserRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateUserRequestValidationError) ErrorName() string { - return "CreateUserRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateUserRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateUserRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateUserRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateUserRequestValidationError{} - -var _CreateUserRequest_UserName_Pattern = regexp.MustCompile("^[^[:space:]]{1,200}$") - -// Validate checks the field values on CreateHumanRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *CreateHumanRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetFirstName()); l < 1 || l > 200 { - return CreateHumanRequestValidationError{ - field: "FirstName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetLastName()); l < 1 || l > 200 { - return CreateHumanRequestValidationError{ - field: "LastName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if utf8.RuneCountInString(m.GetNickName()) > 200 { - return CreateHumanRequestValidationError{ - field: "NickName", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPreferredLanguage()) > 200 { - return CreateHumanRequestValidationError{ - field: "PreferredLanguage", - reason: "value length must be at most 200 runes", - } - } - - // no validation rules for Gender - - if l := utf8.RuneCountInString(m.GetEmail()); l < 1 || l > 200 { - return CreateHumanRequestValidationError{ - field: "Email", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if err := m._validateEmail(m.GetEmail()); err != nil { - return CreateHumanRequestValidationError{ - field: "Email", - reason: "value must be a valid email address", - cause: err, - } - } - - // no validation rules for IsEmailVerified - - if utf8.RuneCountInString(m.GetPhone()) > 20 { - return CreateHumanRequestValidationError{ - field: "Phone", - reason: "value length must be at most 20 runes", - } - } - - // no validation rules for IsPhoneVerified - - if utf8.RuneCountInString(m.GetCountry()) > 200 { - return CreateHumanRequestValidationError{ - field: "Country", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetLocality()) > 200 { - return CreateHumanRequestValidationError{ - field: "Locality", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPostalCode()) > 200 { - return CreateHumanRequestValidationError{ - field: "PostalCode", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetRegion()) > 200 { - return CreateHumanRequestValidationError{ - field: "Region", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetStreetAddress()) > 200 { - return CreateHumanRequestValidationError{ - field: "StreetAddress", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPassword()) > 72 { - return CreateHumanRequestValidationError{ - field: "Password", - reason: "value length must be at most 72 runes", - } - } - - return nil -} - -func (m *CreateHumanRequest) _validateHostname(host string) error { - s := strings.ToLower(strings.TrimSuffix(host, ".")) - - if len(host) > 253 { - return errors.New("hostname cannot exceed 253 characters") - } - - for _, part := range strings.Split(s, ".") { - if l := len(part); l == 0 || l > 63 { - return errors.New("hostname part must be non-empty and cannot exceed 63 characters") - } - - if part[0] == '-' { - return errors.New("hostname parts cannot begin with hyphens") - } - - if part[len(part)-1] == '-' { - return errors.New("hostname parts cannot end with hyphens") - } - - for _, r := range part { - if (r < 'a' || r > 'z') && (r < '0' || r > '9') && r != '-' { - return fmt.Errorf("hostname parts can only contain alphanumeric characters or hyphens, got %q", string(r)) - } - } - } - - return nil -} - -func (m *CreateHumanRequest) _validateEmail(addr string) error { - a, err := mail.ParseAddress(addr) - if err != nil { - return err - } - addr = a.Address - - if len(addr) > 254 { - return errors.New("email addresses cannot exceed 254 characters") - } - - parts := strings.SplitN(addr, "@", 2) - - if len(parts[0]) > 64 { - return errors.New("email address local phrase cannot exceed 64 characters") - } - - return m._validateHostname(parts[1]) -} - -// CreateHumanRequestValidationError is the validation error returned by -// CreateHumanRequest.Validate if the designated constraints aren't met. -type CreateHumanRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateHumanRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateHumanRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateHumanRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateHumanRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateHumanRequestValidationError) ErrorName() string { - return "CreateHumanRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateHumanRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateHumanRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateHumanRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateHumanRequestValidationError{} - -// Validate checks the field values on CreateMachineRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *CreateMachineRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return CreateMachineRequestValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if utf8.RuneCountInString(m.GetDescription()) > 500 { - return CreateMachineRequestValidationError{ - field: "Description", - reason: "value length must be at most 500 runes", - } - } - - return nil -} - -// CreateMachineRequestValidationError is the validation error returned by -// CreateMachineRequest.Validate if the designated constraints aren't met. -type CreateMachineRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateMachineRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateMachineRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateMachineRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateMachineRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateMachineRequestValidationError) ErrorName() string { - return "CreateMachineRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateMachineRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateMachineRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateMachineRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateMachineRequestValidationError{} - -// Validate checks the field values on UserResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for UserName - - switch m.User.(type) { - - case *UserResponse_Human: - - if v, ok := interface{}(m.GetHuman()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "Human", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *UserResponse_Machine: - - if v, ok := interface{}(m.GetMachine()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "Machine", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - return UserResponseValidationError{ - field: "User", - reason: "value is required", - } - - } - - return nil -} - -// UserResponseValidationError is the validation error returned by -// UserResponse.Validate if the designated constraints aren't met. -type UserResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserResponseValidationError) ErrorName() string { return "UserResponseValidationError" } - -// Error satisfies the builtin error interface -func (e UserResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserResponseValidationError{} - -// Validate checks the field values on HumanResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *HumanResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for DisplayName - - // no validation rules for NickName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - return nil -} - -// HumanResponseValidationError is the validation error returned by -// HumanResponse.Validate if the designated constraints aren't met. -type HumanResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HumanResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HumanResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HumanResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HumanResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HumanResponseValidationError) ErrorName() string { return "HumanResponseValidationError" } - -// Error satisfies the builtin error interface -func (e HumanResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHumanResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HumanResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HumanResponseValidationError{} - -// Validate checks the field values on MachineResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *MachineResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - // no validation rules for Description - - for idx, item := range m.GetKeys() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineResponseValidationError{ - field: fmt.Sprintf("Keys[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// MachineResponseValidationError is the validation error returned by -// MachineResponse.Validate if the designated constraints aren't met. -type MachineResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineResponseValidationError) ErrorName() string { return "MachineResponseValidationError" } - -// Error satisfies the builtin error interface -func (e MachineResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineResponseValidationError{} - -// Validate checks the field values on MachineKeyResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MachineKeyResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Type - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeyResponseValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetExpirationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeyResponseValidationError{ - field: "ExpirationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// MachineKeyResponseValidationError is the validation error returned by -// MachineKeyResponse.Validate if the designated constraints aren't met. -type MachineKeyResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineKeyResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineKeyResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineKeyResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineKeyResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineKeyResponseValidationError) ErrorName() string { - return "MachineKeyResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e MachineKeyResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineKeyResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineKeyResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineKeyResponseValidationError{} - -// Validate checks the field values on CreateOrgRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *CreateOrgRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetName()) < 1 { - return CreateOrgRequestValidationError{ - field: "Name", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Domain - - return nil -} - -// CreateOrgRequestValidationError is the validation error returned by -// CreateOrgRequest.Validate if the designated constraints aren't met. -type CreateOrgRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateOrgRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateOrgRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateOrgRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateOrgRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateOrgRequestValidationError) ErrorName() string { return "CreateOrgRequestValidationError" } - -// Error satisfies the builtin error interface -func (e CreateOrgRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateOrgRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateOrgRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateOrgRequestValidationError{} - -// Validate checks the field values on OrgIamPolicy with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OrgIamPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for OrgId - - // no validation rules for UserLoginMustBeDomain - - // no validation rules for Default - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgIamPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgIamPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgIamPolicyValidationError is the validation error returned by -// OrgIamPolicy.Validate if the designated constraints aren't met. -type OrgIamPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgIamPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgIamPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgIamPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgIamPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgIamPolicyValidationError) ErrorName() string { return "OrgIamPolicyValidationError" } - -// Error satisfies the builtin error interface -func (e OrgIamPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgIamPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgIamPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgIamPolicyValidationError{} - -// Validate checks the field values on OrgIamPolicyView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgIamPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for OrgId - - // no validation rules for UserLoginMustBeDomain - - // no validation rules for Default - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgIamPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgIamPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgIamPolicyViewValidationError is the validation error returned by -// OrgIamPolicyView.Validate if the designated constraints aren't met. -type OrgIamPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgIamPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgIamPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgIamPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgIamPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgIamPolicyViewValidationError) ErrorName() string { return "OrgIamPolicyViewValidationError" } - -// Error satisfies the builtin error interface -func (e OrgIamPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgIamPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgIamPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgIamPolicyViewValidationError{} - -// Validate checks the field values on OrgIamPolicyRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgIamPolicyRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetOrgId()) < 1 { - return OrgIamPolicyRequestValidationError{ - field: "OrgId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Description - - // no validation rules for UserLoginMustBeDomain - - return nil -} - -// OrgIamPolicyRequestValidationError is the validation error returned by -// OrgIamPolicyRequest.Validate if the designated constraints aren't met. -type OrgIamPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgIamPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgIamPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgIamPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgIamPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgIamPolicyRequestValidationError) ErrorName() string { - return "OrgIamPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgIamPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgIamPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgIamPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgIamPolicyRequestValidationError{} - -// Validate checks the field values on OrgIamPolicyID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OrgIamPolicyID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetOrgId()) < 1 { - return OrgIamPolicyIDValidationError{ - field: "OrgId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// OrgIamPolicyIDValidationError is the validation error returned by -// OrgIamPolicyID.Validate if the designated constraints aren't met. -type OrgIamPolicyIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgIamPolicyIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgIamPolicyIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgIamPolicyIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgIamPolicyIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgIamPolicyIDValidationError) ErrorName() string { return "OrgIamPolicyIDValidationError" } - -// Error satisfies the builtin error interface -func (e OrgIamPolicyIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgIamPolicyID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgIamPolicyIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgIamPolicyIDValidationError{} - -// Validate checks the field values on IamMemberRoles with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IamMemberRoles) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// IamMemberRolesValidationError is the validation error returned by -// IamMemberRoles.Validate if the designated constraints aren't met. -type IamMemberRolesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamMemberRolesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamMemberRolesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamMemberRolesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamMemberRolesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamMemberRolesValidationError) ErrorName() string { return "IamMemberRolesValidationError" } - -// Error satisfies the builtin error interface -func (e IamMemberRolesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIamMemberRoles.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamMemberRolesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamMemberRolesValidationError{} - -// Validate checks the field values on IamMember with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IamMember) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - return nil -} - -// IamMemberValidationError is the validation error returned by -// IamMember.Validate if the designated constraints aren't met. -type IamMemberValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamMemberValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamMemberValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamMemberValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamMemberValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamMemberValidationError) ErrorName() string { return "IamMemberValidationError" } - -// Error satisfies the builtin error interface -func (e IamMemberValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIamMember.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamMemberValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamMemberValidationError{} - -// Validate checks the field values on AddIamMemberRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AddIamMemberRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return AddIamMemberRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// AddIamMemberRequestValidationError is the validation error returned by -// AddIamMemberRequest.Validate if the designated constraints aren't met. -type AddIamMemberRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddIamMemberRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddIamMemberRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddIamMemberRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddIamMemberRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddIamMemberRequestValidationError) ErrorName() string { - return "AddIamMemberRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddIamMemberRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddIamMemberRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddIamMemberRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddIamMemberRequestValidationError{} - -// Validate checks the field values on ChangeIamMemberRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ChangeIamMemberRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ChangeIamMemberRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ChangeIamMemberRequestValidationError is the validation error returned by -// ChangeIamMemberRequest.Validate if the designated constraints aren't met. -type ChangeIamMemberRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeIamMemberRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeIamMemberRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeIamMemberRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeIamMemberRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeIamMemberRequestValidationError) ErrorName() string { - return "ChangeIamMemberRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ChangeIamMemberRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChangeIamMemberRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeIamMemberRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeIamMemberRequestValidationError{} - -// Validate checks the field values on RemoveIamMemberRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *RemoveIamMemberRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return RemoveIamMemberRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// RemoveIamMemberRequestValidationError is the validation error returned by -// RemoveIamMemberRequest.Validate if the designated constraints aren't met. -type RemoveIamMemberRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RemoveIamMemberRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RemoveIamMemberRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RemoveIamMemberRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RemoveIamMemberRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RemoveIamMemberRequestValidationError) ErrorName() string { - return "RemoveIamMemberRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e RemoveIamMemberRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRemoveIamMemberRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RemoveIamMemberRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RemoveIamMemberRequestValidationError{} - -// Validate checks the field values on IamMemberSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IamMemberSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// IamMemberSearchResponseValidationError is the validation error returned by -// IamMemberSearchResponse.Validate if the designated constraints aren't met. -type IamMemberSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamMemberSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamMemberSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamMemberSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamMemberSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamMemberSearchResponseValidationError) ErrorName() string { - return "IamMemberSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e IamMemberSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIamMemberSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamMemberSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamMemberSearchResponseValidationError{} - -// Validate checks the field values on IamMemberView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IamMemberView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for UserName - - // no validation rules for Email - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for DisplayName - - return nil -} - -// IamMemberViewValidationError is the validation error returned by -// IamMemberView.Validate if the designated constraints aren't met. -type IamMemberViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamMemberViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamMemberViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamMemberViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamMemberViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamMemberViewValidationError) ErrorName() string { return "IamMemberViewValidationError" } - -// Error satisfies the builtin error interface -func (e IamMemberViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIamMemberView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamMemberViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamMemberViewValidationError{} - -// Validate checks the field values on IamMemberSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IamMemberSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IamMemberSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IamMemberSearchRequestValidationError is the validation error returned by -// IamMemberSearchRequest.Validate if the designated constraints aren't met. -type IamMemberSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamMemberSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamMemberSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamMemberSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamMemberSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamMemberSearchRequestValidationError) ErrorName() string { - return "IamMemberSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e IamMemberSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIamMemberSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamMemberSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamMemberSearchRequestValidationError{} - -// Validate checks the field values on IamMemberSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IamMemberSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _IamMemberSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return IamMemberSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// IamMemberSearchQueryValidationError is the validation error returned by -// IamMemberSearchQuery.Validate if the designated constraints aren't met. -type IamMemberSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamMemberSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamMemberSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamMemberSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamMemberSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamMemberSearchQueryValidationError) ErrorName() string { - return "IamMemberSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e IamMemberSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIamMemberSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamMemberSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamMemberSearchQueryValidationError{} - -var _IamMemberSearchQuery_Key_NotInLookup = map[IamMemberSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on FailedEventID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *FailedEventID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetDatabase()) < 1 { - return FailedEventIDValidationError{ - field: "Database", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetViewName()) < 1 { - return FailedEventIDValidationError{ - field: "ViewName", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for FailedSequence - - return nil -} - -// FailedEventIDValidationError is the validation error returned by -// FailedEventID.Validate if the designated constraints aren't met. -type FailedEventIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e FailedEventIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e FailedEventIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e FailedEventIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e FailedEventIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e FailedEventIDValidationError) ErrorName() string { return "FailedEventIDValidationError" } - -// Error satisfies the builtin error interface -func (e FailedEventIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sFailedEventID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = FailedEventIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = FailedEventIDValidationError{} - -// Validate checks the field values on FailedEvents with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *FailedEvents) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetFailedEvents() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return FailedEventsValidationError{ - field: fmt.Sprintf("FailedEvents[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// FailedEventsValidationError is the validation error returned by -// FailedEvents.Validate if the designated constraints aren't met. -type FailedEventsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e FailedEventsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e FailedEventsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e FailedEventsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e FailedEventsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e FailedEventsValidationError) ErrorName() string { return "FailedEventsValidationError" } - -// Error satisfies the builtin error interface -func (e FailedEventsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sFailedEvents.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = FailedEventsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = FailedEventsValidationError{} - -// Validate checks the field values on FailedEvent with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *FailedEvent) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Database - - // no validation rules for ViewName - - // no validation rules for FailedSequence - - // no validation rules for FailureCount - - // no validation rules for ErrorMessage - - return nil -} - -// FailedEventValidationError is the validation error returned by -// FailedEvent.Validate if the designated constraints aren't met. -type FailedEventValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e FailedEventValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e FailedEventValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e FailedEventValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e FailedEventValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e FailedEventValidationError) ErrorName() string { return "FailedEventValidationError" } - -// Error satisfies the builtin error interface -func (e FailedEventValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sFailedEvent.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = FailedEventValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = FailedEventValidationError{} - -// Validate checks the field values on ViewID with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *ViewID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetDatabase()) < 1 { - return ViewIDValidationError{ - field: "Database", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetViewName()) < 1 { - return ViewIDValidationError{ - field: "ViewName", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ViewIDValidationError is the validation error returned by ViewID.Validate if -// the designated constraints aren't met. -type ViewIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ViewIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ViewIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ViewIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ViewIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ViewIDValidationError) ErrorName() string { return "ViewIDValidationError" } - -// Error satisfies the builtin error interface -func (e ViewIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sViewID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ViewIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ViewIDValidationError{} - -// Validate checks the field values on Views with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Views) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetViews() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ViewsValidationError{ - field: fmt.Sprintf("Views[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ViewsValidationError is the validation error returned by Views.Validate if -// the designated constraints aren't met. -type ViewsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ViewsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ViewsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ViewsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ViewsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ViewsValidationError) ErrorName() string { return "ViewsValidationError" } - -// Error satisfies the builtin error interface -func (e ViewsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sViews.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ViewsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ViewsValidationError{} - -// Validate checks the field values on View with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *View) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Database - - // no validation rules for ViewName - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ViewValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ViewValidationError is the validation error returned by View.Validate if the -// designated constraints aren't met. -type ViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ViewValidationError) ErrorName() string { return "ViewValidationError" } - -// Error satisfies the builtin error interface -func (e ViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ViewValidationError{} - -// Validate checks the field values on IdpID with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IdpID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return IdpIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// IdpIDValidationError is the validation error returned by IdpID.Validate if -// the designated constraints aren't met. -type IdpIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpIDValidationError) ErrorName() string { return "IdpIDValidationError" } - -// Error satisfies the builtin error interface -func (e IdpIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpIDValidationError{} - -// Validate checks the field values on Idp with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *Idp) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for StylingType - - // no validation rules for Sequence - - switch m.IdpConfig.(type) { - - case *Idp_OidcConfig: - - if v, ok := interface{}(m.GetOidcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpValidationError{ - field: "OidcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IdpValidationError is the validation error returned by Idp.Validate if the -// designated constraints aren't met. -type IdpValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpValidationError) ErrorName() string { return "IdpValidationError" } - -// Error satisfies the builtin error interface -func (e IdpValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdp.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpValidationError{} - -// Validate checks the field values on IdpUpdate with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IdpUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return IdpUpdateValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Name - - // no validation rules for StylingType - - return nil -} - -// IdpUpdateValidationError is the validation error returned by -// IdpUpdate.Validate if the designated constraints aren't met. -type IdpUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpUpdateValidationError) ErrorName() string { return "IdpUpdateValidationError" } - -// Error satisfies the builtin error interface -func (e IdpUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpUpdateValidationError{} - -// Validate checks the field values on OidcIdpConfig with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OidcIdpConfig) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ClientId - - // no validation rules for ClientSecret - - // no validation rules for Issuer - - return nil -} - -// OidcIdpConfigValidationError is the validation error returned by -// OidcIdpConfig.Validate if the designated constraints aren't met. -type OidcIdpConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigValidationError) ErrorName() string { return "OidcIdpConfigValidationError" } - -// Error satisfies the builtin error interface -func (e OidcIdpConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigValidationError{} - -// Validate checks the field values on OidcIdpConfigCreate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OidcIdpConfigCreate) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for StylingType - - if l := utf8.RuneCountInString(m.GetClientId()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "ClientId", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetClientSecret()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "ClientSecret", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetIssuer()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "Issuer", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigCreateValidationError is the validation error returned by -// OidcIdpConfigCreate.Validate if the designated constraints aren't met. -type OidcIdpConfigCreateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigCreateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigCreateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigCreateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigCreateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigCreateValidationError) ErrorName() string { - return "OidcIdpConfigCreateValidationError" -} - -// Error satisfies the builtin error interface -func (e OidcIdpConfigCreateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfigCreate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigCreateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigCreateValidationError{} - -// Validate checks the field values on OidcIdpConfigUpdate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OidcIdpConfigUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetIdpId()) < 1 { - return OidcIdpConfigUpdateValidationError{ - field: "IdpId", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetClientId()); l < 1 || l > 200 { - return OidcIdpConfigUpdateValidationError{ - field: "ClientId", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for ClientSecret - - if l := utf8.RuneCountInString(m.GetIssuer()); l < 1 || l > 200 { - return OidcIdpConfigUpdateValidationError{ - field: "Issuer", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigUpdateValidationError is the validation error returned by -// OidcIdpConfigUpdate.Validate if the designated constraints aren't met. -type OidcIdpConfigUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigUpdateValidationError) ErrorName() string { - return "OidcIdpConfigUpdateValidationError" -} - -// Error satisfies the builtin error interface -func (e OidcIdpConfigUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfigUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigUpdateValidationError{} - -// Validate checks the field values on IdpSearchResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *IdpSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// IdpSearchResponseValidationError is the validation error returned by -// IdpSearchResponse.Validate if the designated constraints aren't met. -type IdpSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpSearchResponseValidationError) ErrorName() string { - return "IdpSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e IdpSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpSearchResponseValidationError{} - -// Validate checks the field values on IdpView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IdpView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for StylingType - - // no validation rules for Sequence - - switch m.IdpConfigView.(type) { - - case *IdpView_OidcConfig: - - if v, ok := interface{}(m.GetOidcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpViewValidationError{ - field: "OidcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IdpViewValidationError is the validation error returned by IdpView.Validate -// if the designated constraints aren't met. -type IdpViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpViewValidationError) ErrorName() string { return "IdpViewValidationError" } - -// Error satisfies the builtin error interface -func (e IdpViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpViewValidationError{} - -// Validate checks the field values on OidcIdpConfigView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OidcIdpConfigView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ClientId - - // no validation rules for Issuer - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigViewValidationError is the validation error returned by -// OidcIdpConfigView.Validate if the designated constraints aren't met. -type OidcIdpConfigViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigViewValidationError) ErrorName() string { - return "OidcIdpConfigViewValidationError" -} - -// Error satisfies the builtin error interface -func (e OidcIdpConfigViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfigView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigViewValidationError{} - -// Validate checks the field values on IdpSearchRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *IdpSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IdpSearchRequestValidationError is the validation error returned by -// IdpSearchRequest.Validate if the designated constraints aren't met. -type IdpSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpSearchRequestValidationError) ErrorName() string { return "IdpSearchRequestValidationError" } - -// Error satisfies the builtin error interface -func (e IdpSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpSearchRequestValidationError{} - -// Validate checks the field values on IdpSearchQuery with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IdpSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _IdpSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return IdpSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// IdpSearchQueryValidationError is the validation error returned by -// IdpSearchQuery.Validate if the designated constraints aren't met. -type IdpSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpSearchQueryValidationError) ErrorName() string { return "IdpSearchQueryValidationError" } - -// Error satisfies the builtin error interface -func (e IdpSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpSearchQueryValidationError{} - -var _IdpSearchQuery_Key_NotInLookup = map[IdpSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on DefaultLabelPolicy with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultLabelPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for PrimaryColor - - // no validation rules for SecondaryColor - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLabelPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLabelPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultLabelPolicyValidationError is the validation error returned by -// DefaultLabelPolicy.Validate if the designated constraints aren't met. -type DefaultLabelPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultLabelPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultLabelPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultLabelPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultLabelPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultLabelPolicyValidationError) ErrorName() string { - return "DefaultLabelPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultLabelPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultLabelPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultLabelPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultLabelPolicyValidationError{} - -// Validate checks the field values on DefaultLabelPolicyUpdate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultLabelPolicyUpdate) Validate() error { - if m == nil { - return nil - } - - // no validation rules for PrimaryColor - - // no validation rules for SecondaryColor - - return nil -} - -// DefaultLabelPolicyUpdateValidationError is the validation error returned by -// DefaultLabelPolicyUpdate.Validate if the designated constraints aren't met. -type DefaultLabelPolicyUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultLabelPolicyUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultLabelPolicyUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultLabelPolicyUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultLabelPolicyUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultLabelPolicyUpdateValidationError) ErrorName() string { - return "DefaultLabelPolicyUpdateValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultLabelPolicyUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultLabelPolicyUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultLabelPolicyUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultLabelPolicyUpdateValidationError{} - -// Validate checks the field values on DefaultLabelPolicyView with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultLabelPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for PrimaryColor - - // no validation rules for SecondaryColor - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLabelPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLabelPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultLabelPolicyViewValidationError is the validation error returned by -// DefaultLabelPolicyView.Validate if the designated constraints aren't met. -type DefaultLabelPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultLabelPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultLabelPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultLabelPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultLabelPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultLabelPolicyViewValidationError) ErrorName() string { - return "DefaultLabelPolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultLabelPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultLabelPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultLabelPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultLabelPolicyViewValidationError{} - -// Validate checks the field values on DefaultLoginPolicy with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultLoginPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for AllowUsernamePassword - - // no validation rules for AllowRegister - - // no validation rules for AllowExternalIdp - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLoginPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLoginPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ForceMfa - - return nil -} - -// DefaultLoginPolicyValidationError is the validation error returned by -// DefaultLoginPolicy.Validate if the designated constraints aren't met. -type DefaultLoginPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultLoginPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultLoginPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultLoginPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultLoginPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultLoginPolicyValidationError) ErrorName() string { - return "DefaultLoginPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultLoginPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultLoginPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultLoginPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultLoginPolicyValidationError{} - -// Validate checks the field values on DefaultLoginPolicyRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultLoginPolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for AllowUsernamePassword - - // no validation rules for AllowRegister - - // no validation rules for AllowExternalIdp - - // no validation rules for ForceMfa - - return nil -} - -// DefaultLoginPolicyRequestValidationError is the validation error returned by -// DefaultLoginPolicyRequest.Validate if the designated constraints aren't met. -type DefaultLoginPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultLoginPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultLoginPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultLoginPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultLoginPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultLoginPolicyRequestValidationError) ErrorName() string { - return "DefaultLoginPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultLoginPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultLoginPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultLoginPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultLoginPolicyRequestValidationError{} - -// Validate checks the field values on IdpProviderID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IdpProviderID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetIdpConfigId()) < 1 { - return IdpProviderIDValidationError{ - field: "IdpConfigId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// IdpProviderIDValidationError is the validation error returned by -// IdpProviderID.Validate if the designated constraints aren't met. -type IdpProviderIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderIDValidationError) ErrorName() string { return "IdpProviderIDValidationError" } - -// Error satisfies the builtin error interface -func (e IdpProviderIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderIDValidationError{} - -// Validate checks the field values on DefaultLoginPolicyView with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultLoginPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for AllowUsernamePassword - - // no validation rules for AllowRegister - - // no validation rules for AllowExternalIdp - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLoginPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultLoginPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ForceMfa - - return nil -} - -// DefaultLoginPolicyViewValidationError is the validation error returned by -// DefaultLoginPolicyView.Validate if the designated constraints aren't met. -type DefaultLoginPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultLoginPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultLoginPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultLoginPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultLoginPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultLoginPolicyViewValidationError) ErrorName() string { - return "DefaultLoginPolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultLoginPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultLoginPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultLoginPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultLoginPolicyViewValidationError{} - -// Validate checks the field values on IdpProviderView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *IdpProviderView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IdpConfigId - - // no validation rules for Name - - // no validation rules for Type - - return nil -} - -// IdpProviderViewValidationError is the validation error returned by -// IdpProviderView.Validate if the designated constraints aren't met. -type IdpProviderViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderViewValidationError) ErrorName() string { return "IdpProviderViewValidationError" } - -// Error satisfies the builtin error interface -func (e IdpProviderViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderViewValidationError{} - -// Validate checks the field values on IdpProviderSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IdpProviderSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpProviderSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpProviderSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// IdpProviderSearchResponseValidationError is the validation error returned by -// IdpProviderSearchResponse.Validate if the designated constraints aren't met. -type IdpProviderSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderSearchResponseValidationError) ErrorName() string { - return "IdpProviderSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e IdpProviderSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderSearchResponseValidationError{} - -// Validate checks the field values on IdpProviderSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IdpProviderSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - return nil -} - -// IdpProviderSearchRequestValidationError is the validation error returned by -// IdpProviderSearchRequest.Validate if the designated constraints aren't met. -type IdpProviderSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderSearchRequestValidationError) ErrorName() string { - return "IdpProviderSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e IdpProviderSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderSearchRequestValidationError{} - -// Validate checks the field values on SecondFactorsResult with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *SecondFactorsResult) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// SecondFactorsResultValidationError is the validation error returned by -// SecondFactorsResult.Validate if the designated constraints aren't met. -type SecondFactorsResultValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SecondFactorsResultValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SecondFactorsResultValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SecondFactorsResultValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SecondFactorsResultValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SecondFactorsResultValidationError) ErrorName() string { - return "SecondFactorsResultValidationError" -} - -// Error satisfies the builtin error interface -func (e SecondFactorsResultValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSecondFactorsResult.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SecondFactorsResultValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SecondFactorsResultValidationError{} - -// Validate checks the field values on SecondFactor with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *SecondFactor) Validate() error { - if m == nil { - return nil - } - - // no validation rules for SecondFactor - - return nil -} - -// SecondFactorValidationError is the validation error returned by -// SecondFactor.Validate if the designated constraints aren't met. -type SecondFactorValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SecondFactorValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SecondFactorValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SecondFactorValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SecondFactorValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SecondFactorValidationError) ErrorName() string { return "SecondFactorValidationError" } - -// Error satisfies the builtin error interface -func (e SecondFactorValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSecondFactor.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SecondFactorValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SecondFactorValidationError{} - -// Validate checks the field values on MultiFactorsResult with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MultiFactorsResult) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// MultiFactorsResultValidationError is the validation error returned by -// MultiFactorsResult.Validate if the designated constraints aren't met. -type MultiFactorsResultValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MultiFactorsResultValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MultiFactorsResultValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MultiFactorsResultValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MultiFactorsResultValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MultiFactorsResultValidationError) ErrorName() string { - return "MultiFactorsResultValidationError" -} - -// Error satisfies the builtin error interface -func (e MultiFactorsResultValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMultiFactorsResult.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MultiFactorsResultValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MultiFactorsResultValidationError{} - -// Validate checks the field values on MultiFactor with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MultiFactor) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MultiFactor - - return nil -} - -// MultiFactorValidationError is the validation error returned by -// MultiFactor.Validate if the designated constraints aren't met. -type MultiFactorValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MultiFactorValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MultiFactorValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MultiFactorValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MultiFactorValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MultiFactorValidationError) ErrorName() string { return "MultiFactorValidationError" } - -// Error satisfies the builtin error interface -func (e MultiFactorValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMultiFactor.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MultiFactorValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MultiFactorValidationError{} - -// Validate checks the field values on DefaultPasswordComplexityPolicy with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultPasswordComplexityPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MinLength - - // no validation rules for HasUppercase - - // no validation rules for HasLowercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordComplexityPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordComplexityPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultPasswordComplexityPolicyValidationError is the validation error -// returned by DefaultPasswordComplexityPolicy.Validate if the designated -// constraints aren't met. -type DefaultPasswordComplexityPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordComplexityPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordComplexityPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordComplexityPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordComplexityPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordComplexityPolicyValidationError) ErrorName() string { - return "DefaultPasswordComplexityPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordComplexityPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordComplexityPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordComplexityPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordComplexityPolicyValidationError{} - -// Validate checks the field values on DefaultPasswordComplexityPolicyRequest -// with the rules defined in the proto definition for this message. If any -// rules are violated, an error is returned. -func (m *DefaultPasswordComplexityPolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MinLength - - // no validation rules for HasUppercase - - // no validation rules for HasLowercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - return nil -} - -// DefaultPasswordComplexityPolicyRequestValidationError is the validation -// error returned by DefaultPasswordComplexityPolicyRequest.Validate if the -// designated constraints aren't met. -type DefaultPasswordComplexityPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordComplexityPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordComplexityPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordComplexityPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordComplexityPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordComplexityPolicyRequestValidationError) ErrorName() string { - return "DefaultPasswordComplexityPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordComplexityPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordComplexityPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordComplexityPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordComplexityPolicyRequestValidationError{} - -// Validate checks the field values on DefaultPasswordComplexityPolicyView with -// the rules defined in the proto definition for this message. If any rules -// are violated, an error is returned. -func (m *DefaultPasswordComplexityPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MinLength - - // no validation rules for HasUppercase - - // no validation rules for HasLowercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordComplexityPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordComplexityPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultPasswordComplexityPolicyViewValidationError is the validation error -// returned by DefaultPasswordComplexityPolicyView.Validate if the designated -// constraints aren't met. -type DefaultPasswordComplexityPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordComplexityPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordComplexityPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordComplexityPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordComplexityPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordComplexityPolicyViewValidationError) ErrorName() string { - return "DefaultPasswordComplexityPolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordComplexityPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordComplexityPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordComplexityPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordComplexityPolicyViewValidationError{} - -// Validate checks the field values on DefaultPasswordAgePolicy with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultPasswordAgePolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAgeDays - - // no validation rules for ExpireWarnDays - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordAgePolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordAgePolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultPasswordAgePolicyValidationError is the validation error returned by -// DefaultPasswordAgePolicy.Validate if the designated constraints aren't met. -type DefaultPasswordAgePolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordAgePolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordAgePolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordAgePolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordAgePolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordAgePolicyValidationError) ErrorName() string { - return "DefaultPasswordAgePolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordAgePolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordAgePolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordAgePolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordAgePolicyValidationError{} - -// Validate checks the field values on DefaultPasswordAgePolicyRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultPasswordAgePolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAgeDays - - // no validation rules for ExpireWarnDays - - return nil -} - -// DefaultPasswordAgePolicyRequestValidationError is the validation error -// returned by DefaultPasswordAgePolicyRequest.Validate if the designated -// constraints aren't met. -type DefaultPasswordAgePolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordAgePolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordAgePolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordAgePolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordAgePolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordAgePolicyRequestValidationError) ErrorName() string { - return "DefaultPasswordAgePolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordAgePolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordAgePolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordAgePolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordAgePolicyRequestValidationError{} - -// Validate checks the field values on DefaultPasswordAgePolicyView with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultPasswordAgePolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAgeDays - - // no validation rules for ExpireWarnDays - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordAgePolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordAgePolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultPasswordAgePolicyViewValidationError is the validation error returned -// by DefaultPasswordAgePolicyView.Validate if the designated constraints -// aren't met. -type DefaultPasswordAgePolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordAgePolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordAgePolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordAgePolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordAgePolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordAgePolicyViewValidationError) ErrorName() string { - return "DefaultPasswordAgePolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordAgePolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordAgePolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordAgePolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordAgePolicyViewValidationError{} - -// Validate checks the field values on DefaultPasswordLockoutPolicy with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *DefaultPasswordLockoutPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAttempts - - // no validation rules for ShowLockoutFailure - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordLockoutPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordLockoutPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultPasswordLockoutPolicyValidationError is the validation error returned -// by DefaultPasswordLockoutPolicy.Validate if the designated constraints -// aren't met. -type DefaultPasswordLockoutPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordLockoutPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordLockoutPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordLockoutPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordLockoutPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordLockoutPolicyValidationError) ErrorName() string { - return "DefaultPasswordLockoutPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordLockoutPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordLockoutPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordLockoutPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordLockoutPolicyValidationError{} - -// Validate checks the field values on DefaultPasswordLockoutPolicyRequest with -// the rules defined in the proto definition for this message. If any rules -// are violated, an error is returned. -func (m *DefaultPasswordLockoutPolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAttempts - - // no validation rules for ShowLockoutFailure - - return nil -} - -// DefaultPasswordLockoutPolicyRequestValidationError is the validation error -// returned by DefaultPasswordLockoutPolicyRequest.Validate if the designated -// constraints aren't met. -type DefaultPasswordLockoutPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordLockoutPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordLockoutPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordLockoutPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordLockoutPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordLockoutPolicyRequestValidationError) ErrorName() string { - return "DefaultPasswordLockoutPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordLockoutPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordLockoutPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordLockoutPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordLockoutPolicyRequestValidationError{} - -// Validate checks the field values on DefaultPasswordLockoutPolicyView with -// the rules defined in the proto definition for this message. If any rules -// are violated, an error is returned. -func (m *DefaultPasswordLockoutPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAttempts - - // no validation rules for ShowLockoutFailure - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordLockoutPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DefaultPasswordLockoutPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// DefaultPasswordLockoutPolicyViewValidationError is the validation error -// returned by DefaultPasswordLockoutPolicyView.Validate if the designated -// constraints aren't met. -type DefaultPasswordLockoutPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DefaultPasswordLockoutPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DefaultPasswordLockoutPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DefaultPasswordLockoutPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DefaultPasswordLockoutPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DefaultPasswordLockoutPolicyViewValidationError) ErrorName() string { - return "DefaultPasswordLockoutPolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e DefaultPasswordLockoutPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDefaultPasswordLockoutPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DefaultPasswordLockoutPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DefaultPasswordLockoutPolicyViewValidationError{} diff --git a/pkg/grpc/admin/admin.swagger.json b/pkg/grpc/admin/admin.swagger.json deleted file mode 100644 index 1792ebc209..0000000000 --- a/pkg/grpc/admin/admin.swagger.json +++ /dev/null @@ -1,3007 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "admin service", - "version": "0.1", - "contact": { - "url": "https://github.com/caos/zitadel/pkg/admin" - } - }, - "schemes": [ - "https" - ], - "consumes": [ - "application/json", - "application/grpc" - ], - "produces": [ - "application/json", - "application/grpc" - ], - "paths": { - "/failedevents": { - "get": { - "operationId": "AdminService_GetFailedEvents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1FailedEvents" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/failedevents/{database}/{view_name}/{failed_sequence}": { - "delete": { - "operationId": "AdminService_RemoveFailedEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "database", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "view_name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "failed_sequence", - "in": "path", - "required": true, - "type": "string", - "format": "uint64" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/healthz": { - "get": { - "summary": "Healthz returns status OK as soon as the service started", - "operationId": "AdminService_Healthz", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/idps/_search": { - "post": { - "operationId": "AdminService_SearchIdps", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpSearchResponse" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpSearchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/idps/oidc": { - "post": { - "operationId": "AdminService_CreateOidcIdp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OidcIdpConfigCreate" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/idps/{idp_id}/oidcconfig": { - "put": { - "operationId": "AdminService_UpdateOidcIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OidcIdpConfig" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "idp_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OidcIdpConfigUpdate" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/idps/{id}": { - "get": { - "operationId": "AdminService_IdpByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "operationId": "AdminService_RemoveIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpUpdate" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/idps/{id}/_deactivate": { - "put": { - "operationId": "AdminService_DeactivateIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpID" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/idps/{id}/_reactivate": { - "put": { - "operationId": "AdminService_ReactivateIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpID" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/members": { - "post": { - "operationId": "AdminService_AddIamMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IamMember" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1AddIamMemberRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/members/_search": { - "post": { - "operationId": "AdminService_SearchIamMembers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IamMemberSearchResponse" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IamMemberSearchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/members/roles": { - "get": { - "operationId": "AdminService_GetIamMemberRoles", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IamMemberRoles" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/members/{user_id}": { - "delete": { - "operationId": "AdminService_RemoveIamMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_ChangeIamMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IamMember" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ChangeIamMemberRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/orgs/_isunique": { - "get": { - "summary": "ORG", - "operationId": "AdminService_IsOrgUnique", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UniqueOrgResponse" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "domain", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/orgs/_search": { - "post": { - "operationId": "AdminService_SearchOrgs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgSearchResponse" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgSearchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/orgs/_setup": { - "post": { - "operationId": "AdminService_SetUpOrg", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgSetUpResponse" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgSetUpRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/orgs/default/policies/orgiam": { - "get": { - "summary": "ORG_IAM_POLICY", - "operationId": "AdminService_GetDefaultOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgIamPolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateDefaultOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgIamPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgIamPolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/orgs/{id}": { - "get": { - "operationId": "AdminService_GetOrgByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Org" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/orgs/{org_id}/policies/orgiam": { - "get": { - "operationId": "AdminService_GetOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgIamPolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "org_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "operationId": "AdminService_RemoveOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "org_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "post": { - "operationId": "AdminService_CreateOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgIamPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "org_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgIamPolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgIamPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "org_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgIamPolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/label": { - "get": { - "operationId": "AdminService_GetDefaultLabelPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultLabelPolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateDefaultLabelPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultLabelPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1DefaultLabelPolicyUpdate" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login": { - "get": { - "operationId": "AdminService_GetDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultLoginPolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultLoginPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1DefaultLoginPolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/idpproviders": { - "post": { - "operationId": "AdminService_AddIdpProviderToDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpProviderID" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpProviderID" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/idpproviders/_search": { - "post": { - "operationId": "AdminService_GetDefaultLoginPolicyIdpProviders", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpProviderSearchResponse" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpProviderSearchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/idpproviders/{idp_config_id}": { - "delete": { - "operationId": "AdminService_RemoveIdpProviderFromDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "idp_config_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/multifactors": { - "post": { - "operationId": "AdminService_AddMultiFactorToDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MultiFactor" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1MultiFactor" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/multifactors/_search": { - "get": { - "operationId": "AdminService_GetDefaultLoginPolicyMultiFactors", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MultiFactorsResult" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/multifactors/{multi_factor}": { - "delete": { - "operationId": "AdminService_RemoveMultiFactorFromDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "multi_factor", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "MULTIFACTORTYPE_UNSPECIFIED", - "MULTIFACTORTYPE_U2F_WITH_PIN" - ] - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/secondfactors": { - "post": { - "operationId": "AdminService_AddSecondFactorToDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1SecondFactor" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1SecondFactor" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/secondfactors/_search": { - "get": { - "operationId": "AdminService_GetDefaultLoginPolicySecondFactors", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1SecondFactorsResult" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/policies/login/secondfactors/{second_factor}": { - "delete": { - "operationId": "AdminService_RemoveSecondFactorFromDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "second_factor", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "SECONDFACTORTYPE_UNSPECIFIED", - "SECONDFACTORTYPE_OTP", - "SECONDFACTORTYPE_U2F" - ] - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/password/age": { - "get": { - "operationId": "AdminService_GetDefaultPasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultPasswordAgePolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateDefaultPasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultPasswordAgePolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1DefaultPasswordAgePolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/password/complexity": { - "get": { - "operationId": "AdminService_GetDefaultPasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultPasswordComplexityPolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateDefaultPasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultPasswordComplexityPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1DefaultPasswordComplexityPolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/policies/password/lockout": { - "get": { - "operationId": "AdminService_GetDefaultPasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultPasswordLockoutPolicyView" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - }, - "put": { - "operationId": "AdminService_UpdateDefaultPasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1DefaultPasswordLockoutPolicy" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1DefaultPasswordLockoutPolicyRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/ready": { - "get": { - "summary": "Ready returns status OK as soon as all dependent services are available", - "operationId": "AdminService_Ready", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/validate": { - "get": { - "operationId": "AdminService_Validate", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/views": { - "get": { - "operationId": "AdminService_GetViews", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Views" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/views/{database}/{view_name}": { - "post": { - "operationId": "AdminService_ClearView", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "database", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "view_name", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - } - }, - "definitions": { - "protobufAny": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - }, - "value": { - "type": "string", - "format": "byte", - "description": "Must be a valid serialized protocol buffer of the above specified type." - } - }, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "runtimeError": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "v1AddIamMemberRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ChangeIamMemberRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1CreateHumanRequest": { - "type": "object", - "properties": { - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean", - "format": "boolean" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean", - "format": "boolean" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "v1CreateMachineRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "v1CreateOrgRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "domain": { - "type": "string" - } - } - }, - "v1CreateUserRequest": { - "type": "object", - "properties": { - "user_name": { - "type": "string" - }, - "human": { - "$ref": "#/definitions/v1CreateHumanRequest" - }, - "machine": { - "$ref": "#/definitions/v1CreateMachineRequest" - } - } - }, - "v1DefaultLabelPolicy": { - "type": "object", - "properties": { - "primary_color": { - "type": "string" - }, - "secondary_color": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultLabelPolicyUpdate": { - "type": "object", - "properties": { - "primary_color": { - "type": "string" - }, - "secondary_color": { - "type": "string" - } - } - }, - "v1DefaultLabelPolicyView": { - "type": "object", - "properties": { - "primary_color": { - "type": "string" - }, - "secondary_color": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultLoginPolicy": { - "type": "object", - "properties": { - "allow_username_password": { - "type": "boolean", - "format": "boolean" - }, - "allow_register": { - "type": "boolean", - "format": "boolean" - }, - "allow_external_idp": { - "type": "boolean", - "format": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "force_mfa": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1DefaultLoginPolicyRequest": { - "type": "object", - "properties": { - "allow_username_password": { - "type": "boolean", - "format": "boolean" - }, - "allow_register": { - "type": "boolean", - "format": "boolean" - }, - "allow_external_idp": { - "type": "boolean", - "format": "boolean" - }, - "force_mfa": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1DefaultLoginPolicyView": { - "type": "object", - "properties": { - "allow_username_password": { - "type": "boolean", - "format": "boolean" - }, - "allow_register": { - "type": "boolean", - "format": "boolean" - }, - "allow_external_idp": { - "type": "boolean", - "format": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "force_mfa": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1DefaultPasswordAgePolicy": { - "type": "object", - "properties": { - "max_age_days": { - "type": "string", - "format": "uint64" - }, - "expire_warn_days": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultPasswordAgePolicyRequest": { - "type": "object", - "properties": { - "max_age_days": { - "type": "string", - "format": "uint64" - }, - "expire_warn_days": { - "type": "string", - "format": "uint64" - } - } - }, - "v1DefaultPasswordAgePolicyView": { - "type": "object", - "properties": { - "max_age_days": { - "type": "string", - "format": "uint64" - }, - "expire_warn_days": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultPasswordComplexityPolicy": { - "type": "object", - "properties": { - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_uppercase": { - "type": "boolean", - "format": "boolean" - }, - "has_lowercase": { - "type": "boolean", - "format": "boolean" - }, - "has_number": { - "type": "boolean", - "format": "boolean" - }, - "has_symbol": { - "type": "boolean", - "format": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultPasswordComplexityPolicyRequest": { - "type": "object", - "properties": { - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_uppercase": { - "type": "boolean", - "format": "boolean" - }, - "has_lowercase": { - "type": "boolean", - "format": "boolean" - }, - "has_number": { - "type": "boolean", - "format": "boolean" - }, - "has_symbol": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1DefaultPasswordComplexityPolicyView": { - "type": "object", - "properties": { - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_uppercase": { - "type": "boolean", - "format": "boolean" - }, - "has_lowercase": { - "type": "boolean", - "format": "boolean" - }, - "has_number": { - "type": "boolean", - "format": "boolean" - }, - "has_symbol": { - "type": "boolean", - "format": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultPasswordLockoutPolicy": { - "type": "object", - "properties": { - "max_attempts": { - "type": "string", - "format": "uint64" - }, - "show_lockout_failure": { - "type": "boolean", - "format": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1DefaultPasswordLockoutPolicyRequest": { - "type": "object", - "properties": { - "max_attempts": { - "type": "string", - "format": "uint64" - }, - "show_lockout_failure": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1DefaultPasswordLockoutPolicyView": { - "type": "object", - "properties": { - "max_attempts": { - "type": "string", - "format": "uint64" - }, - "show_lockout_failure": { - "type": "boolean", - "format": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1FailedEvent": { - "type": "object", - "properties": { - "database": { - "type": "string" - }, - "view_name": { - "type": "string" - }, - "failed_sequence": { - "type": "string", - "format": "uint64" - }, - "failure_count": { - "type": "string", - "format": "uint64" - }, - "error_message": { - "type": "string" - } - } - }, - "v1FailedEvents": { - "type": "object", - "properties": { - "failed_events": { - "type": "array", - "items": { - "$ref": "#/definitions/v1FailedEvent" - } - } - } - }, - "v1Gender": { - "type": "string", - "enum": [ - "GENDER_UNSPECIFIED", - "GENDER_FEMALE", - "GENDER_MALE", - "GENDER_DIVERSE" - ], - "default": "GENDER_UNSPECIFIED" - }, - "v1HumanResponse": { - "type": "object", - "properties": { - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean", - "format": "boolean" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean", - "format": "boolean" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "v1IamMember": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1IamMemberRoles": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1IamMemberSearchKey": { - "type": "string", - "enum": [ - "IAMMEMBERSEARCHKEY_UNSPECIFIED", - "IAMMEMBERSEARCHKEY_FIRST_NAME", - "IAMMEMBERSEARCHKEY_LAST_NAME", - "IAMMEMBERSEARCHKEY_EMAIL", - "IAMMEMBERSEARCHKEY_USER_ID" - ], - "default": "IAMMEMBERSEARCHKEY_UNSPECIFIED" - }, - "v1IamMemberSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1IamMemberSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1IamMemberSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IamMemberSearchQuery" - } - } - } - }, - "v1IamMemberSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IamMemberView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1IamMemberView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "user_name": { - "type": "string" - }, - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "display_name": { - "type": "string" - } - } - }, - "v1Idp": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1IdpState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - }, - "oidc_config": { - "$ref": "#/definitions/v1OidcIdpConfig" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1IdpID": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "v1IdpProviderID": { - "type": "object", - "properties": { - "idp_config_id": { - "type": "string" - } - } - }, - "v1IdpProviderSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - } - } - }, - "v1IdpProviderSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IdpProviderView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1IdpProviderView": { - "type": "object", - "properties": { - "idp_config_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1IdpType" - } - } - }, - "v1IdpSearchKey": { - "type": "string", - "enum": [ - "IDPSEARCHKEY_UNSPECIFIED", - "IDPSEARCHKEY_IDP_CONFIG_ID", - "IDPSEARCHKEY_NAME" - ], - "default": "IDPSEARCHKEY_UNSPECIFIED" - }, - "v1IdpSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1IdpSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1IdpSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IdpSearchQuery" - } - } - } - }, - "v1IdpSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IdpView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1IdpState": { - "type": "string", - "enum": [ - "IDPCONFIGSTATE_UNSPECIFIED", - "IDPCONFIGSTATE_ACTIVE", - "IDPCONFIGSTATE_INACTIVE" - ], - "default": "IDPCONFIGSTATE_UNSPECIFIED" - }, - "v1IdpStylingType": { - "type": "string", - "enum": [ - "IDPSTYLINGTYPE_UNSPECIFIED", - "IDPSTYLINGTYPE_GOOGLE" - ], - "default": "IDPSTYLINGTYPE_UNSPECIFIED" - }, - "v1IdpType": { - "type": "string", - "enum": [ - "IDPTYPE_UNSPECIFIED", - "IDPTYPE_OIDC", - "IDPTYPE_SAML" - ], - "default": "IDPTYPE_UNSPECIFIED" - }, - "v1IdpUpdate": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - } - } - }, - "v1IdpView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1IdpState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - }, - "oidc_config": { - "$ref": "#/definitions/v1OidcIdpConfigView" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1MachineKeyResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1MachineKeyType" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "expiration_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1MachineKeyType": { - "type": "string", - "enum": [ - "MACHINEKEY_UNSPECIFIED", - "MACHINEKEY_JSON" - ], - "default": "MACHINEKEY_UNSPECIFIED" - }, - "v1MachineResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "keys": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MachineKeyResponse" - } - } - } - }, - "v1MultiFactor": { - "type": "object", - "properties": { - "multi_factor": { - "$ref": "#/definitions/v1MultiFactorType" - } - } - }, - "v1MultiFactorType": { - "type": "string", - "enum": [ - "MULTIFACTORTYPE_UNSPECIFIED", - "MULTIFACTORTYPE_U2F_WITH_PIN" - ], - "default": "MULTIFACTORTYPE_UNSPECIFIED" - }, - "v1MultiFactorsResult": { - "type": "object", - "properties": { - "multi_factors": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MultiFactorType" - } - } - } - }, - "v1OIDCMappingField": { - "type": "string", - "enum": [ - "OIDCMAPPINGFIELD_UNSPECIFIED", - "OIDCMAPPINGFIELD_PREFERRED_USERNAME", - "OIDCMAPPINGFIELD_EMAIL" - ], - "default": "OIDCMAPPINGFIELD_UNSPECIFIED" - }, - "v1OidcIdpConfig": { - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1OidcIdpConfigCreate": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - }, - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1OidcIdpConfigUpdate": { - "type": "object", - "properties": { - "idp_id": { - "type": "string" - }, - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1OidcIdpConfigView": { - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1Org": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1OrgState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "domain": { - "type": "string" - } - } - }, - "v1OrgIamPolicy": { - "type": "object", - "properties": { - "org_id": { - "type": "string" - }, - "user_login_must_be_domain": { - "type": "boolean", - "format": "boolean" - }, - "default": { - "type": "boolean", - "format": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1OrgIamPolicyRequest": { - "type": "object", - "properties": { - "org_id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "user_login_must_be_domain": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1OrgIamPolicyView": { - "type": "object", - "properties": { - "org_id": { - "type": "string" - }, - "user_login_must_be_domain": { - "type": "boolean", - "format": "boolean" - }, - "default": { - "type": "boolean", - "format": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1OrgSearchKey": { - "type": "string", - "enum": [ - "ORGSEARCHKEY_UNSPECIFIED", - "ORGSEARCHKEY_NAME", - "ORGSEARCHKEY_DOMAIN", - "ORGSEARCHKEY_STATE" - ], - "default": "ORGSEARCHKEY_UNSPECIFIED" - }, - "v1OrgSearchMethod": { - "type": "string", - "enum": [ - "ORGSEARCHMETHOD_EQUALS", - "ORGSEARCHMETHOD_STARTS_WITH", - "ORGSEARCHMETHOD_CONTAINS" - ], - "default": "ORGSEARCHMETHOD_EQUALS" - }, - "v1OrgSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1OrgSearchKey" - }, - "method": { - "$ref": "#/definitions/v1OrgSearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1OrgSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "sorting_column": { - "$ref": "#/definitions/v1OrgSearchKey" - }, - "asc": { - "type": "boolean", - "format": "boolean" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OrgSearchQuery" - } - } - } - }, - "v1OrgSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Org" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1OrgSetUpRequest": { - "type": "object", - "properties": { - "org": { - "$ref": "#/definitions/v1CreateOrgRequest" - }, - "user": { - "$ref": "#/definitions/v1CreateUserRequest" - } - } - }, - "v1OrgSetUpResponse": { - "type": "object", - "properties": { - "org": { - "$ref": "#/definitions/v1Org" - }, - "user": { - "$ref": "#/definitions/v1UserResponse" - } - } - }, - "v1OrgState": { - "type": "string", - "enum": [ - "ORGSTATE_UNSPECIFIED", - "ORGSTATE_ACTIVE", - "ORGSTATE_INACTIVE" - ], - "default": "ORGSTATE_UNSPECIFIED" - }, - "v1SearchMethod": { - "type": "string", - "enum": [ - "SEARCHMETHOD_EQUALS", - "SEARCHMETHOD_STARTS_WITH", - "SEARCHMETHOD_CONTAINS", - "SEARCHMETHOD_EQUALS_IGNORE_CASE", - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - "SEARCHMETHOD_NOT_EQUALS", - "SEARCHMETHOD_GREATER_THAN", - "SEARCHMETHOD_LESS_THAN", - "SEARCHMETHOD_IS_ONE_OF", - "SEARCHMETHOD_LIST_CONTAINS" - ], - "default": "SEARCHMETHOD_EQUALS" - }, - "v1SecondFactor": { - "type": "object", - "properties": { - "second_factor": { - "$ref": "#/definitions/v1SecondFactorType" - } - } - }, - "v1SecondFactorType": { - "type": "string", - "enum": [ - "SECONDFACTORTYPE_UNSPECIFIED", - "SECONDFACTORTYPE_OTP", - "SECONDFACTORTYPE_U2F" - ], - "default": "SECONDFACTORTYPE_UNSPECIFIED" - }, - "v1SecondFactorsResult": { - "type": "object", - "properties": { - "second_factors": { - "type": "array", - "items": { - "$ref": "#/definitions/v1SecondFactorType" - } - } - } - }, - "v1UniqueOrgResponse": { - "type": "object", - "properties": { - "is_unique": { - "type": "boolean", - "format": "boolean" - } - } - }, - "v1UserResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1UserState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "user_name": { - "type": "string" - }, - "human": { - "$ref": "#/definitions/v1HumanResponse" - }, - "machine": { - "$ref": "#/definitions/v1MachineResponse" - } - } - }, - "v1UserState": { - "type": "string", - "enum": [ - "USERSTATE_UNSPECIFIED", - "USERSTATE_ACTIVE", - "USERSTATE_INACTIVE", - "USERSTATE_DELETED", - "USERSTATE_LOCKED", - "USERSTATE_SUSPEND", - "USERSTATE_INITIAL" - ], - "default": "USERSTATE_UNSPECIFIED" - }, - "v1View": { - "type": "object", - "properties": { - "database": { - "type": "string" - }, - "view_name": { - "type": "string" - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1Views": { - "type": "object", - "properties": { - "views": { - "type": "array", - "items": { - "$ref": "#/definitions/v1View" - } - } - } - } - } -} diff --git a/pkg/grpc/auth/auth.pb.authoptions.go b/pkg/grpc/auth/auth.pb.authoptions.go deleted file mode 100644 index a2d5d59212..0000000000 --- a/pkg/grpc/auth/auth.pb.authoptions.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by protoc-gen-authmethod. DO NOT EDIT. - -package auth - -import ( - "github.com/caos/zitadel/internal/api/authz" -) - -/** - * AuthService - */ - -const AuthService_MethodPrefix = "caos.zitadel.auth.api.v1.AuthService" - -var AuthService_AuthMethods = authz.MethodMapping{ - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUser": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserName": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyMfas": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/SearchMyExternalIDPs": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/RemoveMyExternalIDP": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, -} diff --git a/pkg/grpc/auth/auth.pb.go b/pkg/grpc/auth/auth.pb.go deleted file mode 100644 index e8f76a5afd..0000000000 --- a/pkg/grpc/auth/auth.pb.go +++ /dev/null @@ -1,6862 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.13.0 -// source: auth.proto - -package auth - -import ( - context "context" - _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" - message "github.com/caos/zitadel/pkg/grpc/message" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type UserSessionState int32 - -const ( - UserSessionState_USERSESSIONSTATE_UNSPECIFIED UserSessionState = 0 - UserSessionState_USERSESSIONSTATE_ACTIVE UserSessionState = 1 - UserSessionState_USERSESSIONSTATE_TERMINATED UserSessionState = 2 -) - -// Enum value maps for UserSessionState. -var ( - UserSessionState_name = map[int32]string{ - 0: "USERSESSIONSTATE_UNSPECIFIED", - 1: "USERSESSIONSTATE_ACTIVE", - 2: "USERSESSIONSTATE_TERMINATED", - } - UserSessionState_value = map[string]int32{ - "USERSESSIONSTATE_UNSPECIFIED": 0, - "USERSESSIONSTATE_ACTIVE": 1, - "USERSESSIONSTATE_TERMINATED": 2, - } -) - -func (x UserSessionState) Enum() *UserSessionState { - p := new(UserSessionState) - *p = x - return p -} - -func (x UserSessionState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserSessionState) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[0].Descriptor() -} - -func (UserSessionState) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[0] -} - -func (x UserSessionState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserSessionState.Descriptor instead. -func (UserSessionState) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{0} -} - -type MachineKeyType int32 - -const ( - MachineKeyType_MACHINEKEY_UNSPECIFIED MachineKeyType = 0 - MachineKeyType_MACHINEKEY_JSON MachineKeyType = 1 -) - -// Enum value maps for MachineKeyType. -var ( - MachineKeyType_name = map[int32]string{ - 0: "MACHINEKEY_UNSPECIFIED", - 1: "MACHINEKEY_JSON", - } - MachineKeyType_value = map[string]int32{ - "MACHINEKEY_UNSPECIFIED": 0, - "MACHINEKEY_JSON": 1, - } -) - -func (x MachineKeyType) Enum() *MachineKeyType { - p := new(MachineKeyType) - *p = x - return p -} - -func (x MachineKeyType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MachineKeyType) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[1].Descriptor() -} - -func (MachineKeyType) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[1] -} - -func (x MachineKeyType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MachineKeyType.Descriptor instead. -func (MachineKeyType) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{1} -} - -type UserState int32 - -const ( - UserState_USERSTATE_UNSPECIFIED UserState = 0 - UserState_USERSTATE_ACTIVE UserState = 1 - UserState_USERSTATE_INACTIVE UserState = 2 - UserState_USERSTATE_DELETED UserState = 3 - UserState_USERSTATE_LOCKED UserState = 4 - UserState_USERSTATE_SUSPEND UserState = 5 - UserState_USERSTATE_INITIAL UserState = 6 -) - -// Enum value maps for UserState. -var ( - UserState_name = map[int32]string{ - 0: "USERSTATE_UNSPECIFIED", - 1: "USERSTATE_ACTIVE", - 2: "USERSTATE_INACTIVE", - 3: "USERSTATE_DELETED", - 4: "USERSTATE_LOCKED", - 5: "USERSTATE_SUSPEND", - 6: "USERSTATE_INITIAL", - } - UserState_value = map[string]int32{ - "USERSTATE_UNSPECIFIED": 0, - "USERSTATE_ACTIVE": 1, - "USERSTATE_INACTIVE": 2, - "USERSTATE_DELETED": 3, - "USERSTATE_LOCKED": 4, - "USERSTATE_SUSPEND": 5, - "USERSTATE_INITIAL": 6, - } -) - -func (x UserState) Enum() *UserState { - p := new(UserState) - *p = x - return p -} - -func (x UserState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserState) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[2].Descriptor() -} - -func (UserState) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[2] -} - -func (x UserState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserState.Descriptor instead. -func (UserState) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{2} -} - -type Gender int32 - -const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 -) - -// Enum value maps for Gender. -var ( - Gender_name = map[int32]string{ - 0: "GENDER_UNSPECIFIED", - 1: "GENDER_FEMALE", - 2: "GENDER_MALE", - 3: "GENDER_DIVERSE", - } - Gender_value = map[string]int32{ - "GENDER_UNSPECIFIED": 0, - "GENDER_FEMALE": 1, - "GENDER_MALE": 2, - "GENDER_DIVERSE": 3, - } -) - -func (x Gender) Enum() *Gender { - p := new(Gender) - *p = x - return p -} - -func (x Gender) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Gender) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[3].Descriptor() -} - -func (Gender) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[3] -} - -func (x Gender) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Gender.Descriptor instead. -func (Gender) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{3} -} - -type MfaType int32 - -const ( - MfaType_MFATYPE_UNSPECIFIED MfaType = 0 - MfaType_MFATYPE_SMS MfaType = 1 - MfaType_MFATYPE_OTP MfaType = 2 -) - -// Enum value maps for MfaType. -var ( - MfaType_name = map[int32]string{ - 0: "MFATYPE_UNSPECIFIED", - 1: "MFATYPE_SMS", - 2: "MFATYPE_OTP", - } - MfaType_value = map[string]int32{ - "MFATYPE_UNSPECIFIED": 0, - "MFATYPE_SMS": 1, - "MFATYPE_OTP": 2, - } -) - -func (x MfaType) Enum() *MfaType { - p := new(MfaType) - *p = x - return p -} - -func (x MfaType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MfaType) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[4].Descriptor() -} - -func (MfaType) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[4] -} - -func (x MfaType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MfaType.Descriptor instead. -func (MfaType) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{4} -} - -type MFAState int32 - -const ( - MFAState_MFASTATE_UNSPECIFIED MFAState = 0 - MFAState_MFASTATE_NOT_READY MFAState = 1 - MFAState_MFASTATE_READY MFAState = 2 - MFAState_MFASTATE_REMOVED MFAState = 3 -) - -// Enum value maps for MFAState. -var ( - MFAState_name = map[int32]string{ - 0: "MFASTATE_UNSPECIFIED", - 1: "MFASTATE_NOT_READY", - 2: "MFASTATE_READY", - 3: "MFASTATE_REMOVED", - } - MFAState_value = map[string]int32{ - "MFASTATE_UNSPECIFIED": 0, - "MFASTATE_NOT_READY": 1, - "MFASTATE_READY": 2, - "MFASTATE_REMOVED": 3, - } -) - -func (x MFAState) Enum() *MFAState { - p := new(MFAState) - *p = x - return p -} - -func (x MFAState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MFAState) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[5].Descriptor() -} - -func (MFAState) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[5] -} - -func (x MFAState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MFAState.Descriptor instead. -func (MFAState) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{5} -} - -type UserGrantSearchKey int32 - -const ( - UserGrantSearchKey_UserGrantSearchKey_UNKNOWN UserGrantSearchKey = 0 - UserGrantSearchKey_UserGrantSearchKey_ORG_ID UserGrantSearchKey = 1 - UserGrantSearchKey_UserGrantSearchKey_PROJECT_ID UserGrantSearchKey = 2 -) - -// Enum value maps for UserGrantSearchKey. -var ( - UserGrantSearchKey_name = map[int32]string{ - 0: "UserGrantSearchKey_UNKNOWN", - 1: "UserGrantSearchKey_ORG_ID", - 2: "UserGrantSearchKey_PROJECT_ID", - } - UserGrantSearchKey_value = map[string]int32{ - "UserGrantSearchKey_UNKNOWN": 0, - "UserGrantSearchKey_ORG_ID": 1, - "UserGrantSearchKey_PROJECT_ID": 2, - } -) - -func (x UserGrantSearchKey) Enum() *UserGrantSearchKey { - p := new(UserGrantSearchKey) - *p = x - return p -} - -func (x UserGrantSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (UserGrantSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[6].Descriptor() -} - -func (UserGrantSearchKey) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[6] -} - -func (x UserGrantSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use UserGrantSearchKey.Descriptor instead. -func (UserGrantSearchKey) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{6} -} - -type MyProjectOrgSearchKey int32 - -const ( - MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_UNSPECIFIED MyProjectOrgSearchKey = 0 - MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_ORG_NAME MyProjectOrgSearchKey = 1 -) - -// Enum value maps for MyProjectOrgSearchKey. -var ( - MyProjectOrgSearchKey_name = map[int32]string{ - 0: "MYPROJECTORGSEARCHKEY_UNSPECIFIED", - 1: "MYPROJECTORGSEARCHKEY_ORG_NAME", - } - MyProjectOrgSearchKey_value = map[string]int32{ - "MYPROJECTORGSEARCHKEY_UNSPECIFIED": 0, - "MYPROJECTORGSEARCHKEY_ORG_NAME": 1, - } -) - -func (x MyProjectOrgSearchKey) Enum() *MyProjectOrgSearchKey { - p := new(MyProjectOrgSearchKey) - *p = x - return p -} - -func (x MyProjectOrgSearchKey) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MyProjectOrgSearchKey) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[7].Descriptor() -} - -func (MyProjectOrgSearchKey) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[7] -} - -func (x MyProjectOrgSearchKey) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MyProjectOrgSearchKey.Descriptor instead. -func (MyProjectOrgSearchKey) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{7} -} - -type SearchMethod int32 - -const ( - SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 - SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 - SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 - SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 - SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 - SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 -) - -// Enum value maps for SearchMethod. -var ( - SearchMethod_name = map[int32]string{ - 0: "SEARCHMETHOD_EQUALS", - 1: "SEARCHMETHOD_STARTS_WITH", - 2: "SEARCHMETHOD_CONTAINS", - 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", - 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - } - SearchMethod_value = map[string]int32{ - "SEARCHMETHOD_EQUALS": 0, - "SEARCHMETHOD_STARTS_WITH": 1, - "SEARCHMETHOD_CONTAINS": 2, - "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, - "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, - } -) - -func (x SearchMethod) Enum() *SearchMethod { - p := new(SearchMethod) - *p = x - return p -} - -func (x SearchMethod) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (SearchMethod) Descriptor() protoreflect.EnumDescriptor { - return file_auth_proto_enumTypes[8].Descriptor() -} - -func (SearchMethod) Type() protoreflect.EnumType { - return &file_auth_proto_enumTypes[8] -} - -func (x SearchMethod) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use SearchMethod.Descriptor instead. -func (SearchMethod) EnumDescriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{8} -} - -type UserSessionViews struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserSessions []*UserSessionView `protobuf:"bytes,1,rep,name=user_sessions,json=userSessions,proto3" json:"user_sessions,omitempty"` -} - -func (x *UserSessionViews) Reset() { - *x = UserSessionViews{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserSessionViews) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserSessionViews) ProtoMessage() {} - -func (x *UserSessionViews) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserSessionViews.ProtoReflect.Descriptor instead. -func (*UserSessionViews) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{0} -} - -func (x *UserSessionViews) GetUserSessions() []*UserSessionView { - if x != nil { - return x.UserSessions - } - return nil -} - -type UserSessionView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AgentId string `protobuf:"bytes,2,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` - AuthState UserSessionState `protobuf:"varint,3,opt,name=auth_state,json=authState,proto3,enum=caos.zitadel.auth.api.v1.UserSessionState" json:"auth_state,omitempty"` - UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName string `protobuf:"bytes,5,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` - LoginName string `protobuf:"bytes,7,opt,name=login_name,json=loginName,proto3" json:"login_name,omitempty"` - DisplayName string `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` -} - -func (x *UserSessionView) Reset() { - *x = UserSessionView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserSessionView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserSessionView) ProtoMessage() {} - -func (x *UserSessionView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserSessionView.ProtoReflect.Descriptor instead. -func (*UserSessionView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{1} -} - -func (x *UserSessionView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserSessionView) GetAgentId() string { - if x != nil { - return x.AgentId - } - return "" -} - -func (x *UserSessionView) GetAuthState() UserSessionState { - if x != nil { - return x.AuthState - } - return UserSessionState_USERSESSIONSTATE_UNSPECIFIED -} - -func (x *UserSessionView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserSessionView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (x *UserSessionView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserSessionView) GetLoginName() string { - if x != nil { - return x.LoginName - } - return "" -} - -func (x *UserSessionView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -type UserView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.auth.api.v1.UserState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - LoginNames []string `protobuf:"bytes,6,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` - PreferredLoginName string `protobuf:"bytes,7,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` - LastLogin *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` - ResourceOwner string `protobuf:"bytes,9,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - UserName string `protobuf:"bytes,10,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - // Types that are assignable to User: - // *UserView_Human - // *UserView_Machine - User isUserView_User `protobuf_oneof:"user"` -} - -func (x *UserView) Reset() { - *x = UserView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserView) ProtoMessage() {} - -func (x *UserView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserView.ProtoReflect.Descriptor instead. -func (*UserView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{2} -} - -func (x *UserView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserView) GetState() UserState { - if x != nil { - return x.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (x *UserView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserView) GetLoginNames() []string { - if x != nil { - return x.LoginNames - } - return nil -} - -func (x *UserView) GetPreferredLoginName() string { - if x != nil { - return x.PreferredLoginName - } - return "" -} - -func (x *UserView) GetLastLogin() *timestamp.Timestamp { - if x != nil { - return x.LastLogin - } - return nil -} - -func (x *UserView) GetResourceOwner() string { - if x != nil { - return x.ResourceOwner - } - return "" -} - -func (x *UserView) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -func (m *UserView) GetUser() isUserView_User { - if m != nil { - return m.User - } - return nil -} - -func (x *UserView) GetHuman() *HumanView { - if x, ok := x.GetUser().(*UserView_Human); ok { - return x.Human - } - return nil -} - -func (x *UserView) GetMachine() *MachineView { - if x, ok := x.GetUser().(*UserView_Machine); ok { - return x.Machine - } - return nil -} - -type isUserView_User interface { - isUserView_User() -} - -type UserView_Human struct { - Human *HumanView `protobuf:"bytes,11,opt,name=human,proto3,oneof"` -} - -type UserView_Machine struct { - Machine *MachineView `protobuf:"bytes,12,opt,name=machine,proto3,oneof"` -} - -func (*UserView_Human) isUserView_User() {} - -func (*UserView_Machine) isUserView_User() {} - -type MachineView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LastKeyAdded *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_key_added,json=lastKeyAdded,proto3" json:"last_key_added,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *MachineView) Reset() { - *x = MachineView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MachineView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MachineView) ProtoMessage() {} - -func (x *MachineView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MachineView.ProtoReflect.Descriptor instead. -func (*MachineView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{3} -} - -func (x *MachineView) GetLastKeyAdded() *timestamp.Timestamp { - if x != nil { - return x.LastKeyAdded - } - return nil -} - -func (x *MachineView) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *MachineView) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -type MachineKeyView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type MachineKeyType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.auth.api.v1.MachineKeyType" json:"type,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ExpirationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` -} - -func (x *MachineKeyView) Reset() { - *x = MachineKeyView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MachineKeyView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MachineKeyView) ProtoMessage() {} - -func (x *MachineKeyView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MachineKeyView.ProtoReflect.Descriptor instead. -func (*MachineKeyView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{4} -} - -func (x *MachineKeyView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *MachineKeyView) GetType() MachineKeyType { - if x != nil { - return x.Type - } - return MachineKeyType_MACHINEKEY_UNSPECIFIED -} - -func (x *MachineKeyView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *MachineKeyView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *MachineKeyView) GetExpirationDate() *timestamp.Timestamp { - if x != nil { - return x.ExpirationDate - } - return nil -} - -type HumanView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PasswordChanged *timestamp.Timestamp `protobuf:"bytes,1,opt,name=password_changed,json=passwordChanged,proto3" json:"password_changed,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=caos.zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,9,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,11,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,12,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,13,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,14,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,15,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,16,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` -} - -func (x *HumanView) Reset() { - *x = HumanView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HumanView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HumanView) ProtoMessage() {} - -func (x *HumanView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HumanView.ProtoReflect.Descriptor instead. -func (*HumanView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{5} -} - -func (x *HumanView) GetPasswordChanged() *timestamp.Timestamp { - if x != nil { - return x.PasswordChanged - } - return nil -} - -func (x *HumanView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *HumanView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *HumanView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *HumanView) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *HumanView) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *HumanView) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *HumanView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *HumanView) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *HumanView) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *HumanView) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *HumanView) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *HumanView) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *HumanView) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *HumanView) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *HumanView) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -type UserProfile struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=caos.zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserProfile) Reset() { - *x = UserProfile{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserProfile) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserProfile) ProtoMessage() {} - -func (x *UserProfile) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserProfile.ProtoReflect.Descriptor instead. -func (*UserProfile) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{6} -} - -func (x *UserProfile) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserProfile) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UserProfile) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UserProfile) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UserProfile) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UserProfile) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UserProfile) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *UserProfile) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserProfile) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserProfile) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserProfileView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=caos.zitadel.auth.api.v1.Gender" json:"gender,omitempty"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - LoginNames []string `protobuf:"bytes,11,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` - PreferredLoginName string `protobuf:"bytes,12,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` -} - -func (x *UserProfileView) Reset() { - *x = UserProfileView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserProfileView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserProfileView) ProtoMessage() {} - -func (x *UserProfileView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserProfileView.ProtoReflect.Descriptor instead. -func (*UserProfileView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{7} -} - -func (x *UserProfileView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserProfileView) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UserProfileView) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UserProfileView) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UserProfileView) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UserProfileView) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UserProfileView) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (x *UserProfileView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserProfileView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserProfileView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *UserProfileView) GetLoginNames() []string { - if x != nil { - return x.LoginNames - } - return nil -} - -func (x *UserProfileView) GetPreferredLoginName() string { - if x != nil { - return x.PreferredLoginName - } - return "" -} - -type UpdateUserProfileRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,4,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=caos.zitadel.auth.api.v1.Gender" json:"gender,omitempty"` -} - -func (x *UpdateUserProfileRequest) Reset() { - *x = UpdateUserProfileRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateUserProfileRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserProfileRequest) ProtoMessage() {} - -func (x *UpdateUserProfileRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserProfileRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{8} -} - -func (x *UpdateUserProfileRequest) GetFirstName() string { - if x != nil { - return x.FirstName - } - return "" -} - -func (x *UpdateUserProfileRequest) GetLastName() string { - if x != nil { - return x.LastName - } - return "" -} - -func (x *UpdateUserProfileRequest) GetNickName() string { - if x != nil { - return x.NickName - } - return "" -} - -func (x *UpdateUserProfileRequest) GetPreferredLanguage() string { - if x != nil { - return x.PreferredLanguage - } - return "" -} - -func (x *UpdateUserProfileRequest) GetGender() Gender { - if x != nil { - return x.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -type ChangeUserNameRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` -} - -func (x *ChangeUserNameRequest) Reset() { - *x = ChangeUserNameRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangeUserNameRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangeUserNameRequest) ProtoMessage() {} - -func (x *ChangeUserNameRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChangeUserNameRequest.ProtoReflect.Descriptor instead. -func (*ChangeUserNameRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{9} -} - -func (x *ChangeUserNameRequest) GetUserName() string { - if x != nil { - return x.UserName - } - return "" -} - -type UserEmail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,3,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserEmail) Reset() { - *x = UserEmail{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserEmail) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserEmail) ProtoMessage() {} - -func (x *UserEmail) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserEmail.ProtoReflect.Descriptor instead. -func (*UserEmail) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{10} -} - -func (x *UserEmail) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserEmail) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserEmail) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *UserEmail) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserEmail) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserEmail) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserEmailView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,3,opt,name=isEmailVerified,proto3" json:"isEmailVerified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserEmailView) Reset() { - *x = UserEmailView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserEmailView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserEmailView) ProtoMessage() {} - -func (x *UserEmailView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserEmailView.ProtoReflect.Descriptor instead. -func (*UserEmailView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{11} -} - -func (x *UserEmailView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserEmailView) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UserEmailView) GetIsEmailVerified() bool { - if x != nil { - return x.IsEmailVerified - } - return false -} - -func (x *UserEmailView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserEmailView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserEmailView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type VerifyMyUserEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` -} - -func (x *VerifyMyUserEmailRequest) Reset() { - *x = VerifyMyUserEmailRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyMyUserEmailRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyMyUserEmailRequest) ProtoMessage() {} - -func (x *VerifyMyUserEmailRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyMyUserEmailRequest.ProtoReflect.Descriptor instead. -func (*VerifyMyUserEmailRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{12} -} - -func (x *VerifyMyUserEmailRequest) GetCode() string { - if x != nil { - return x.Code - } - return "" -} - -type UpdateUserEmailRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` -} - -func (x *UpdateUserEmailRequest) Reset() { - *x = UpdateUserEmailRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateUserEmailRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserEmailRequest) ProtoMessage() {} - -func (x *UpdateUserEmailRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserEmailRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{13} -} - -func (x *UpdateUserEmailRequest) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -type UserPhone struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserPhone) Reset() { - *x = UserPhone{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserPhone) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserPhone) ProtoMessage() {} - -func (x *UserPhone) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserPhone.ProtoReflect.Descriptor instead. -func (*UserPhone) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{14} -} - -func (x *UserPhone) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserPhone) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *UserPhone) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *UserPhone) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserPhone) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserPhone) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserPhoneView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserPhoneView) Reset() { - *x = UserPhoneView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserPhoneView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserPhoneView) ProtoMessage() {} - -func (x *UserPhoneView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserPhoneView.ProtoReflect.Descriptor instead. -func (*UserPhoneView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{15} -} - -func (x *UserPhoneView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserPhoneView) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -func (x *UserPhoneView) GetIsPhoneVerified() bool { - if x != nil { - return x.IsPhoneVerified - } - return false -} - -func (x *UserPhoneView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserPhoneView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserPhoneView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UpdateUserPhoneRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` -} - -func (x *UpdateUserPhoneRequest) Reset() { - *x = UpdateUserPhoneRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateUserPhoneRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserPhoneRequest) ProtoMessage() {} - -func (x *UpdateUserPhoneRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserPhoneRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{16} -} - -func (x *UpdateUserPhoneRequest) GetPhone() string { - if x != nil { - return x.Phone - } - return "" -} - -type VerifyUserPhoneRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` -} - -func (x *VerifyUserPhoneRequest) Reset() { - *x = VerifyUserPhoneRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyUserPhoneRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyUserPhoneRequest) ProtoMessage() {} - -func (x *VerifyUserPhoneRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyUserPhoneRequest.ProtoReflect.Descriptor instead. -func (*VerifyUserPhoneRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{17} -} - -func (x *VerifyUserPhoneRequest) GetCode() string { - if x != nil { - return x.Code - } - return "" -} - -type UserAddress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserAddress) Reset() { - *x = UserAddress{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserAddress) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserAddress) ProtoMessage() {} - -func (x *UserAddress) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserAddress.ProtoReflect.Descriptor instead. -func (*UserAddress) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{18} -} - -func (x *UserAddress) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserAddress) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UserAddress) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UserAddress) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UserAddress) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UserAddress) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *UserAddress) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserAddress) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserAddress) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UserAddressView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *UserAddressView) Reset() { - *x = UserAddressView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserAddressView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserAddressView) ProtoMessage() {} - -func (x *UserAddressView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserAddressView.ProtoReflect.Descriptor instead. -func (*UserAddressView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{19} -} - -func (x *UserAddressView) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserAddressView) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UserAddressView) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UserAddressView) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UserAddressView) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UserAddressView) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -func (x *UserAddressView) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *UserAddressView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *UserAddressView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -type UpdateUserAddressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,2,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,3,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,5,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` -} - -func (x *UpdateUserAddressRequest) Reset() { - *x = UpdateUserAddressRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateUserAddressRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserAddressRequest) ProtoMessage() {} - -func (x *UpdateUserAddressRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateUserAddressRequest.ProtoReflect.Descriptor instead. -func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{20} -} - -func (x *UpdateUserAddressRequest) GetCountry() string { - if x != nil { - return x.Country - } - return "" -} - -func (x *UpdateUserAddressRequest) GetLocality() string { - if x != nil { - return x.Locality - } - return "" -} - -func (x *UpdateUserAddressRequest) GetPostalCode() string { - if x != nil { - return x.PostalCode - } - return "" -} - -func (x *UpdateUserAddressRequest) GetRegion() string { - if x != nil { - return x.Region - } - return "" -} - -func (x *UpdateUserAddressRequest) GetStreetAddress() string { - if x != nil { - return x.StreetAddress - } - return "" -} - -type PasswordChange struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` - NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` -} - -func (x *PasswordChange) Reset() { - *x = PasswordChange{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordChange) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordChange) ProtoMessage() {} - -func (x *PasswordChange) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PasswordChange.ProtoReflect.Descriptor instead. -func (*PasswordChange) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{21} -} - -func (x *PasswordChange) GetOldPassword() string { - if x != nil { - return x.OldPassword - } - return "" -} - -func (x *PasswordChange) GetNewPassword() string { - if x != nil { - return x.NewPassword - } - return "" -} - -type VerifyMfaOtp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` -} - -func (x *VerifyMfaOtp) Reset() { - *x = VerifyMfaOtp{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyMfaOtp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyMfaOtp) ProtoMessage() {} - -func (x *VerifyMfaOtp) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use VerifyMfaOtp.ProtoReflect.Descriptor instead. -func (*VerifyMfaOtp) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{22} -} - -func (x *VerifyMfaOtp) GetCode() string { - if x != nil { - return x.Code - } - return "" -} - -type MultiFactors struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Mfas []*MultiFactor `protobuf:"bytes,1,rep,name=mfas,proto3" json:"mfas,omitempty"` -} - -func (x *MultiFactors) Reset() { - *x = MultiFactors{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MultiFactors) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MultiFactors) ProtoMessage() {} - -func (x *MultiFactors) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MultiFactors.ProtoReflect.Descriptor instead. -func (*MultiFactors) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{23} -} - -func (x *MultiFactors) GetMfas() []*MultiFactor { - if x != nil { - return x.Mfas - } - return nil -} - -type MultiFactor struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type MfaType `protobuf:"varint,1,opt,name=type,proto3,enum=caos.zitadel.auth.api.v1.MfaType" json:"type,omitempty"` - State MFAState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.auth.api.v1.MFAState" json:"state,omitempty"` -} - -func (x *MultiFactor) Reset() { - *x = MultiFactor{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MultiFactor) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MultiFactor) ProtoMessage() {} - -func (x *MultiFactor) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MultiFactor.ProtoReflect.Descriptor instead. -func (*MultiFactor) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{24} -} - -func (x *MultiFactor) GetType() MfaType { - if x != nil { - return x.Type - } - return MfaType_MFATYPE_UNSPECIFIED -} - -func (x *MultiFactor) GetState() MFAState { - if x != nil { - return x.State - } - return MFAState_MFASTATE_UNSPECIFIED -} - -type MfaOtpResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` - State MFAState `protobuf:"varint,4,opt,name=state,proto3,enum=caos.zitadel.auth.api.v1.MFAState" json:"state,omitempty"` -} - -func (x *MfaOtpResponse) Reset() { - *x = MfaOtpResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MfaOtpResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MfaOtpResponse) ProtoMessage() {} - -func (x *MfaOtpResponse) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MfaOtpResponse.ProtoReflect.Descriptor instead. -func (*MfaOtpResponse) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{25} -} - -func (x *MfaOtpResponse) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *MfaOtpResponse) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *MfaOtpResponse) GetSecret() string { - if x != nil { - return x.Secret - } - return "" -} - -func (x *MfaOtpResponse) GetState() MFAState { - if x != nil { - return x.State - } - return MFAState_MFASTATE_UNSPECIFIED -} - -type UserGrantSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - SortingColumn UserGrantSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.auth.api.v1.UserGrantSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*UserGrantSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *UserGrantSearchRequest) Reset() { - *x = UserGrantSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantSearchRequest) ProtoMessage() {} - -func (x *UserGrantSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserGrantSearchRequest.ProtoReflect.Descriptor instead. -func (*UserGrantSearchRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{26} -} - -func (x *UserGrantSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *UserGrantSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *UserGrantSearchRequest) GetSortingColumn() UserGrantSearchKey { - if x != nil { - return x.SortingColumn - } - return UserGrantSearchKey_UserGrantSearchKey_UNKNOWN -} - -func (x *UserGrantSearchRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -func (x *UserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type UserGrantSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key UserGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.auth.api.v1.UserGrantSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.auth.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *UserGrantSearchQuery) Reset() { - *x = UserGrantSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantSearchQuery) ProtoMessage() {} - -func (x *UserGrantSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserGrantSearchQuery.ProtoReflect.Descriptor instead. -func (*UserGrantSearchQuery) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{27} -} - -func (x *UserGrantSearchQuery) GetKey() UserGrantSearchKey { - if x != nil { - return x.Key - } - return UserGrantSearchKey_UserGrantSearchKey_UNKNOWN -} - -func (x *UserGrantSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *UserGrantSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type UserGrantSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*UserGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *UserGrantSearchResponse) Reset() { - *x = UserGrantSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantSearchResponse) ProtoMessage() {} - -func (x *UserGrantSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserGrantSearchResponse.ProtoReflect.Descriptor instead. -func (*UserGrantSearchResponse) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{28} -} - -func (x *UserGrantSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *UserGrantSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *UserGrantSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *UserGrantSearchResponse) GetResult() []*UserGrantView { - if x != nil { - return x.Result - } - return nil -} - -func (x *UserGrantSearchResponse) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *UserGrantSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type UserGrantView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OrgId string `protobuf:"bytes,1,opt,name=OrgId,proto3" json:"OrgId,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=ProjectId,proto3" json:"ProjectId,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=UserId,proto3" json:"UserId,omitempty"` - Roles []string `protobuf:"bytes,4,rep,name=Roles,proto3" json:"Roles,omitempty"` - OrgName string `protobuf:"bytes,5,opt,name=OrgName,proto3" json:"OrgName,omitempty"` - GrantId string `protobuf:"bytes,6,opt,name=GrantId,proto3" json:"GrantId,omitempty"` -} - -func (x *UserGrantView) Reset() { - *x = UserGrantView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserGrantView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserGrantView) ProtoMessage() {} - -func (x *UserGrantView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UserGrantView.ProtoReflect.Descriptor instead. -func (*UserGrantView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{29} -} - -func (x *UserGrantView) GetOrgId() string { - if x != nil { - return x.OrgId - } - return "" -} - -func (x *UserGrantView) GetProjectId() string { - if x != nil { - return x.ProjectId - } - return "" -} - -func (x *UserGrantView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *UserGrantView) GetRoles() []string { - if x != nil { - return x.Roles - } - return nil -} - -func (x *UserGrantView) GetOrgName() string { - if x != nil { - return x.OrgName - } - return "" -} - -func (x *UserGrantView) GetGrantId() string { - if x != nil { - return x.GrantId - } - return "" -} - -type MyProjectOrgSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*MyProjectOrgSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` -} - -func (x *MyProjectOrgSearchRequest) Reset() { - *x = MyProjectOrgSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MyProjectOrgSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MyProjectOrgSearchRequest) ProtoMessage() {} - -func (x *MyProjectOrgSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MyProjectOrgSearchRequest.ProtoReflect.Descriptor instead. -func (*MyProjectOrgSearchRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{30} -} - -func (x *MyProjectOrgSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *MyProjectOrgSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *MyProjectOrgSearchRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -func (x *MyProjectOrgSearchRequest) GetQueries() []*MyProjectOrgSearchQuery { - if x != nil { - return x.Queries - } - return nil -} - -type MyProjectOrgSearchQuery struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key MyProjectOrgSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.auth.api.v1.MyProjectOrgSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.auth.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` -} - -func (x *MyProjectOrgSearchQuery) Reset() { - *x = MyProjectOrgSearchQuery{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MyProjectOrgSearchQuery) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MyProjectOrgSearchQuery) ProtoMessage() {} - -func (x *MyProjectOrgSearchQuery) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MyProjectOrgSearchQuery.ProtoReflect.Descriptor instead. -func (*MyProjectOrgSearchQuery) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{31} -} - -func (x *MyProjectOrgSearchQuery) GetKey() MyProjectOrgSearchKey { - if x != nil { - return x.Key - } - return MyProjectOrgSearchKey_MYPROJECTORGSEARCHKEY_UNSPECIFIED -} - -func (x *MyProjectOrgSearchQuery) GetMethod() SearchMethod { - if x != nil { - return x.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (x *MyProjectOrgSearchQuery) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - -type MyProjectOrgSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*Org `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` -} - -func (x *MyProjectOrgSearchResponse) Reset() { - *x = MyProjectOrgSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MyProjectOrgSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MyProjectOrgSearchResponse) ProtoMessage() {} - -func (x *MyProjectOrgSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MyProjectOrgSearchResponse.ProtoReflect.Descriptor instead. -func (*MyProjectOrgSearchResponse) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{32} -} - -func (x *MyProjectOrgSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *MyProjectOrgSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *MyProjectOrgSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *MyProjectOrgSearchResponse) GetResult() []*Org { - if x != nil { - return x.Result - } - return nil -} - -type Org struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *Org) Reset() { - *x = Org{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Org) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Org) ProtoMessage() {} - -func (x *Org) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Org.ProtoReflect.Descriptor instead. -func (*Org) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{33} -} - -func (x *Org) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Org) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -type MyPermissions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Permissions []string `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` -} - -func (x *MyPermissions) Reset() { - *x = MyPermissions{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *MyPermissions) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*MyPermissions) ProtoMessage() {} - -func (x *MyPermissions) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use MyPermissions.ProtoReflect.Descriptor instead. -func (*MyPermissions) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{34} -} - -func (x *MyPermissions) GetPermissions() []string { - if x != nil { - return x.Permissions - } - return nil -} - -type ChangesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - SequenceOffset uint64 `protobuf:"varint,2,opt,name=sequence_offset,json=sequenceOffset,proto3" json:"sequence_offset,omitempty"` - Asc bool `protobuf:"varint,3,opt,name=asc,proto3" json:"asc,omitempty"` -} - -func (x *ChangesRequest) Reset() { - *x = ChangesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ChangesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ChangesRequest) ProtoMessage() {} - -func (x *ChangesRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ChangesRequest.ProtoReflect.Descriptor instead. -func (*ChangesRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{35} -} - -func (x *ChangesRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ChangesRequest) GetSequenceOffset() uint64 { - if x != nil { - return x.SequenceOffset - } - return 0 -} - -func (x *ChangesRequest) GetAsc() bool { - if x != nil { - return x.Asc - } - return false -} - -type Changes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Changes []*Change `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (x *Changes) Reset() { - *x = Changes{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Changes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Changes) ProtoMessage() {} - -func (x *Changes) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Changes.ProtoReflect.Descriptor instead. -func (*Changes) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{36} -} - -func (x *Changes) GetChanges() []*Change { - if x != nil { - return x.Changes - } - return nil -} - -func (x *Changes) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *Changes) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -type Change struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChangeDate *timestamp.Timestamp `protobuf:"bytes,1,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - EventType *message.LocalizedMessage `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - EditorId string `protobuf:"bytes,4,opt,name=editor_id,json=editorId,proto3" json:"editor_id,omitempty"` - Editor string `protobuf:"bytes,5,opt,name=editor,proto3" json:"editor,omitempty"` - Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *Change) Reset() { - *x = Change{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Change) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Change) ProtoMessage() {} - -func (x *Change) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Change.ProtoReflect.Descriptor instead. -func (*Change) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{37} -} - -func (x *Change) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *Change) GetEventType() *message.LocalizedMessage { - if x != nil { - return x.EventType - } - return nil -} - -func (x *Change) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *Change) GetEditorId() string { - if x != nil { - return x.EditorId - } - return "" -} - -func (x *Change) GetEditor() string { - if x != nil { - return x.Editor - } - return "" -} - -func (x *Change) GetData() *_struct.Struct { - if x != nil { - return x.Data - } - return nil -} - -type PasswordComplexityPolicy struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - MinLength uint64 `protobuf:"varint,5,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,6,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,7,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,8,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,9,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` - IsDefault bool `protobuf:"varint,11,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` -} - -func (x *PasswordComplexityPolicy) Reset() { - *x = PasswordComplexityPolicy{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PasswordComplexityPolicy) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PasswordComplexityPolicy) ProtoMessage() {} - -func (x *PasswordComplexityPolicy) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PasswordComplexityPolicy.ProtoReflect.Descriptor instead. -func (*PasswordComplexityPolicy) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{38} -} - -func (x *PasswordComplexityPolicy) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PasswordComplexityPolicy) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *PasswordComplexityPolicy) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *PasswordComplexityPolicy) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -func (x *PasswordComplexityPolicy) GetMinLength() uint64 { - if x != nil { - return x.MinLength - } - return 0 -} - -func (x *PasswordComplexityPolicy) GetHasLowercase() bool { - if x != nil { - return x.HasLowercase - } - return false -} - -func (x *PasswordComplexityPolicy) GetHasUppercase() bool { - if x != nil { - return x.HasUppercase - } - return false -} - -func (x *PasswordComplexityPolicy) GetHasNumber() bool { - if x != nil { - return x.HasNumber - } - return false -} - -func (x *PasswordComplexityPolicy) GetHasSymbol() bool { - if x != nil { - return x.HasSymbol - } - return false -} - -func (x *PasswordComplexityPolicy) GetSequence() uint64 { - if x != nil { - return x.Sequence - } - return 0 -} - -func (x *PasswordComplexityPolicy) GetIsDefault() bool { - if x != nil { - return x.IsDefault - } - return false -} - -type ExternalIDPResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` -} - -func (x *ExternalIDPResponse) Reset() { - *x = ExternalIDPResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExternalIDPResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExternalIDPResponse) ProtoMessage() {} - -func (x *ExternalIDPResponse) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExternalIDPResponse.ProtoReflect.Descriptor instead. -func (*ExternalIDPResponse) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{39} -} - -func (x *ExternalIDPResponse) GetIdpConfigId() string { - if x != nil { - return x.IdpConfigId - } - return "" -} - -func (x *ExternalIDPResponse) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ExternalIDPResponse) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -type ExternalIDPRemoveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - ExternalUserId string `protobuf:"bytes,2,opt,name=external_user_id,json=externalUserId,proto3" json:"external_user_id,omitempty"` -} - -func (x *ExternalIDPRemoveRequest) Reset() { - *x = ExternalIDPRemoveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExternalIDPRemoveRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExternalIDPRemoveRequest) ProtoMessage() {} - -func (x *ExternalIDPRemoveRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExternalIDPRemoveRequest.ProtoReflect.Descriptor instead. -func (*ExternalIDPRemoveRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{40} -} - -func (x *ExternalIDPRemoveRequest) GetIdpConfigId() string { - if x != nil { - return x.IdpConfigId - } - return "" -} - -func (x *ExternalIDPRemoveRequest) GetExternalUserId() string { - if x != nil { - return x.ExternalUserId - } - return "" -} - -type ExternalIDPSearchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` -} - -func (x *ExternalIDPSearchRequest) Reset() { - *x = ExternalIDPSearchRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExternalIDPSearchRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExternalIDPSearchRequest) ProtoMessage() {} - -func (x *ExternalIDPSearchRequest) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExternalIDPSearchRequest.ProtoReflect.Descriptor instead. -func (*ExternalIDPSearchRequest) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{41} -} - -func (x *ExternalIDPSearchRequest) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ExternalIDPSearchRequest) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -type ExternalIDPSearchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ExternalIDPView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` -} - -func (x *ExternalIDPSearchResponse) Reset() { - *x = ExternalIDPSearchResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExternalIDPSearchResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExternalIDPSearchResponse) ProtoMessage() {} - -func (x *ExternalIDPSearchResponse) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExternalIDPSearchResponse.ProtoReflect.Descriptor instead. -func (*ExternalIDPSearchResponse) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{42} -} - -func (x *ExternalIDPSearchResponse) GetOffset() uint64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ExternalIDPSearchResponse) GetLimit() uint64 { - if x != nil { - return x.Limit - } - return 0 -} - -func (x *ExternalIDPSearchResponse) GetTotalResult() uint64 { - if x != nil { - return x.TotalResult - } - return 0 -} - -func (x *ExternalIDPSearchResponse) GetResult() []*ExternalIDPView { - if x != nil { - return x.Result - } - return nil -} - -func (x *ExternalIDPSearchResponse) GetProcessedSequence() uint64 { - if x != nil { - return x.ProcessedSequence - } - return 0 -} - -func (x *ExternalIDPSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if x != nil { - return x.ViewTimestamp - } - return nil -} - -type ExternalIDPView struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - IdpConfigId string `protobuf:"bytes,2,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - ExternalUserId string `protobuf:"bytes,3,opt,name=external_user_id,json=externalUserId,proto3" json:"external_user_id,omitempty"` - IdpName string `protobuf:"bytes,4,opt,name=idp_name,json=idpName,proto3" json:"idp_name,omitempty"` - ExternalUserDisplayName string `protobuf:"bytes,5,opt,name=external_user_display_name,json=externalUserDisplayName,proto3" json:"external_user_display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` -} - -func (x *ExternalIDPView) Reset() { - *x = ExternalIDPView{} - if protoimpl.UnsafeEnabled { - mi := &file_auth_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExternalIDPView) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExternalIDPView) ProtoMessage() {} - -func (x *ExternalIDPView) ProtoReflect() protoreflect.Message { - mi := &file_auth_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExternalIDPView.ProtoReflect.Descriptor instead. -func (*ExternalIDPView) Descriptor() ([]byte, []int) { - return file_auth_proto_rawDescGZIP(), []int{43} -} - -func (x *ExternalIDPView) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *ExternalIDPView) GetIdpConfigId() string { - if x != nil { - return x.IdpConfigId - } - return "" -} - -func (x *ExternalIDPView) GetExternalUserId() string { - if x != nil { - return x.ExternalUserId - } - return "" -} - -func (x *ExternalIDPView) GetIdpName() string { - if x != nil { - return x.IdpName - } - return "" -} - -func (x *ExternalIDPView) GetExternalUserDisplayName() string { - if x != nil { - return x.ExternalUserDisplayName - } - return "" -} - -func (x *ExternalIDPView) GetCreationDate() *timestamp.Timestamp { - if x != nil { - return x.CreationDate - } - return nil -} - -func (x *ExternalIDPView) GetChangeDate() *timestamp.Timestamp { - if x != nil { - return x.ChangeDate - } - return nil -} - -var File_auth_proto protoreflect.FileDescriptor - -var file_auth_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2c, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x73, 0x77, 0x61, 0x67, 0x67, 0x65, 0x72, 0x2f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x62, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x73, 0x12, 0x4e, 0x0a, 0x0d, 0x75, 0x73, - 0x65, 0x72, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x0c, 0x75, 0x73, - 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x9b, 0x02, 0x0a, 0x0f, 0x55, - 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x0a, 0x61, 0x75, 0x74, - 0x68, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, - 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, - 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xce, 0x04, 0x0a, 0x08, 0x55, 0x73, 0x65, - 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, - 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x70, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, - 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x6c, - 0x61, 0x73, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x12, - 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x05, - 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x56, 0x69, 0x65, 0x77, - 0x48, 0x00, 0x52, 0x05, 0x68, 0x75, 0x6d, 0x61, 0x6e, 0x12, 0x41, 0x0a, 0x07, 0x6d, 0x61, 0x63, - 0x68, 0x69, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x56, 0x69, 0x65, - 0x77, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x42, 0x0b, 0x0a, 0x04, - 0x75, 0x73, 0x65, 0x72, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x0b, 0x4d, 0x61, - 0x63, 0x68, 0x69, 0x6e, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x40, 0x0a, 0x0e, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x6c, - 0x61, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x41, 0x64, 0x64, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x80, 0x02, 0x0a, 0x0e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4b, 0x65, 0x79, - 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x3c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, - 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, - 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, - 0x43, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, - 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x44, 0x61, 0x74, 0x65, 0x22, 0xd1, 0x04, 0x0a, 0x09, 0x48, 0x75, 0x6d, 0x61, 0x6e, 0x56, 0x69, - 0x65, 0x77, 0x12, 0x45, 0x0a, 0x10, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x63, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, - 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, - 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, - 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, - 0x75, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x14, - 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, - 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, - 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x70, 0x68, 0x6f, - 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, - 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, - 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, - 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x9c, 0x03, 0x0a, 0x0b, 0x55, 0x73, 0x65, - 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x72, 0x73, - 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, - 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, - 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, - 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1a, 0x0a, - 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0xf3, 0x03, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, - 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x66, - 0x69, 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x66, 0x69, 0x72, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, - 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x11, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, - 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, - 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x14, 0x70, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, - 0x72, 0x72, 0x65, 0x64, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8a, 0x02, - 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x0a, 0x66, 0x69, - 0x72, 0x73, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, - 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x09, 0x66, 0x69, 0x72, 0x73, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, - 0x01, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, - 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, - 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, - 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x11, 0x70, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, - 0x12, 0x38, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x52, 0x0a, 0x15, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x39, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1c, 0xfa, 0x42, 0x19, 0x72, 0x17, 0x32, 0x15, 0x5e, - 0x5b, 0x5e, 0x5b, 0x3a, 0x73, 0x70, 0x61, 0x63, 0x65, 0x3a, 0x5d, 0x5d, 0x7b, 0x31, 0x2c, 0x32, - 0x30, 0x30, 0x7d, 0x24, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xf5, - 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, - 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x45, - 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x28, - 0x0a, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, - 0x74, 0x65, 0x22, 0x3a, 0x0a, 0x18, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x79, 0x55, 0x73, - 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, - 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, 0x01, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3a, - 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, - 0x18, 0xc8, 0x01, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0xf7, 0x01, 0x0a, 0x09, 0x55, - 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, - 0x0a, 0x11, 0x69, 0x73, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, - 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x44, 0x61, 0x74, 0x65, 0x22, 0xfb, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, - 0x6e, 0x65, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x11, - 0x69, 0x73, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x50, 0x68, 0x6f, 0x6e, 0x65, - 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x65, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, - 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, - 0x64, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, - 0x74, 0x65, 0x22, 0x39, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x05, - 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, - 0x72, 0x04, 0x10, 0x01, 0x18, 0x14, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x22, 0x38, 0x0a, - 0x16, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0xc8, - 0x01, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0xcd, 0x02, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, - 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, - 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0xd1, 0x02, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x56, 0x69, 0x65, 0x77, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, - 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, - 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, - 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x3f, 0x0a, - 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, - 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x22, 0xe2, 0x01, 0x0a, 0x18, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, - 0x18, 0xc8, 0x01, 0x52, 0x07, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x24, 0x0a, 0x08, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, - 0x74, 0x79, 0x12, 0x29, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, - 0x01, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x20, 0x0a, - 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, - 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, 0x01, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, - 0x2f, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0x18, 0xc8, - 0x01, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x65, 0x65, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x22, 0x6c, 0x0a, 0x0e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x12, 0x2c, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x72, 0x04, 0x10, - 0x01, 0x18, 0x48, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x2c, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x72, 0x04, 0x10, 0x01, 0x18, - 0x48, 0x52, 0x0b, 0x6e, 0x65, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x2b, - 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x66, 0x61, 0x4f, 0x74, 0x70, 0x12, 0x1b, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x49, 0x0a, 0x0c, 0x4d, - 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x04, 0x6d, - 0x66, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, - 0x52, 0x04, 0x6d, 0x66, 0x61, 0x73, 0x22, 0x7e, 0x0a, 0x0b, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x66, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x8d, 0x01, 0x0a, 0x0e, 0x4d, 0x66, 0x61, 0x4f, 0x74, - 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x81, 0x02, 0x0a, 0x16, 0x55, 0x73, 0x65, 0x72, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, - 0x5d, 0x0a, 0x0e, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x4b, 0x65, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, - 0x0d, 0x73, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x10, - 0x0a, 0x03, 0x61, 0x73, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, - 0x12, 0x48, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xb6, 0x01, 0x0a, 0x14, 0x55, - 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x12, 0x48, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x2c, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3e, 0x0a, - 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, - 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, - 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x22, 0x9d, 0x02, 0x0a, 0x17, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, - 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x12, 0x3f, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x56, 0x69, 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, - 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x12, 0x41, 0x0a, 0x0e, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x22, 0xa5, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x56, 0x69, 0x65, 0x77, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x72, 0x67, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x12, 0x14, 0x0a, 0x05, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x05, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x67, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x22, 0xa8, 0x01, 0x0a, 0x19, - 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, - 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, - 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x73, 0x63, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, 0x12, 0x4b, 0x0a, 0x07, 0x71, 0x75, 0x65, - 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, - 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x07, 0x71, - 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0xbc, 0x01, 0x0a, 0x17, 0x4d, 0x79, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x4b, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, - 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x20, 0x00, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x3e, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa4, 0x01, 0x0a, 0x1a, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x72, 0x67, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x29, 0x0a, 0x03, - 0x4f, 0x72, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x0d, 0x4d, 0x79, 0x50, 0x65, 0x72, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x61, 0x0a, 0x0e, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0e, 0x73, 0x65, 0x71, - 0x75, 0x65, 0x6e, 0x63, 0x65, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x61, - 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61, 0x73, 0x63, 0x22, 0x73, 0x0a, - 0x07, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x3a, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x22, 0x89, 0x02, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x3b, 0x0a, - 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x0a, 0x09, - 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x65, 0x64, 0x69, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x64, 0x69, - 0x74, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x64, 0x69, 0x74, 0x6f, - 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xac, - 0x03, 0x0a, 0x18, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, - 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3f, 0x0a, - 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, 0x12, 0x3b, - 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, - 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x23, 0x0a, 0x0d, 0x68, 0x61, - 0x73, 0x5f, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x4c, 0x6f, 0x77, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, 0x12, - 0x23, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x5f, 0x75, 0x70, 0x70, 0x65, 0x72, 0x63, 0x61, 0x73, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x68, 0x61, 0x73, 0x55, 0x70, 0x70, 0x65, 0x72, - 0x63, 0x61, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x6e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x5f, 0x73, 0x79, 0x6d, 0x62, 0x6f, - 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x68, 0x61, 0x73, 0x53, 0x79, 0x6d, 0x62, - 0x6f, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1d, - 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x75, 0x0a, - 0x13, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x70, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x68, 0x0a, 0x18, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x49, 0x44, 0x50, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x22, 0x0a, 0x0d, 0x69, 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, - 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x48, - 0x0a, 0x18, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0xa1, 0x02, 0x0a, 0x19, 0x45, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, - 0x6c, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x56, 0x69, - 0x65, 0x77, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, 0x64, 0x5f, 0x73, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x65, - 0x64, 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x76, - 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xce, 0x02, 0x0a, - 0x0f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x56, 0x69, 0x65, 0x77, - 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x69, 0x64, 0x70, - 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x69, 0x64, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x28, 0x0a, - 0x10, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x64, 0x70, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x64, 0x70, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, - 0x73, 0x65, 0x72, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, - 0x55, 0x73, 0x65, 0x72, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x3f, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x61, 0x74, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x61, 0x74, 0x65, - 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x44, 0x61, 0x74, 0x65, 0x2a, 0x72, 0x0a, - 0x10, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x53, 0x53, 0x49, - 0x4f, 0x4e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, - 0x12, 0x1f, 0x0a, 0x1b, 0x55, 0x53, 0x45, 0x52, 0x53, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x54, 0x45, 0x44, 0x10, - 0x02, 0x2a, 0x41, 0x0a, 0x0e, 0x4d, 0x61, 0x63, 0x68, 0x69, 0x6e, 0x65, 0x4b, 0x65, 0x79, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x4b, 0x45, - 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x13, 0x0a, 0x0f, 0x4d, 0x41, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x4b, 0x45, 0x59, 0x5f, 0x4a, 0x53, - 0x4f, 0x4e, 0x10, 0x01, 0x2a, 0xaf, 0x01, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, - 0x10, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, - 0x45, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, - 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x55, - 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, - 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, - 0x4c, 0x4f, 0x43, 0x4b, 0x45, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, - 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x53, 0x50, 0x45, 0x4e, 0x44, 0x10, 0x05, 0x12, - 0x15, 0x0a, 0x11, 0x55, 0x53, 0x45, 0x52, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x49, 0x4e, 0x49, - 0x54, 0x49, 0x41, 0x4c, 0x10, 0x06, 0x2a, 0x58, 0x0a, 0x06, 0x47, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x12, 0x16, 0x0a, 0x12, 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x47, 0x45, 0x4e, 0x44, - 0x45, 0x52, 0x5f, 0x46, 0x45, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x47, - 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x4d, 0x41, 0x4c, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, - 0x47, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x5f, 0x44, 0x49, 0x56, 0x45, 0x52, 0x53, 0x45, 0x10, 0x03, - 0x2a, 0x44, 0x0a, 0x07, 0x4d, 0x66, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x4d, - 0x46, 0x41, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x46, 0x41, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x53, 0x4d, 0x53, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x46, 0x41, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x4f, 0x54, 0x50, 0x10, 0x02, 0x2a, 0x66, 0x0a, 0x08, 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x12, 0x18, 0x0a, 0x14, 0x4d, 0x46, 0x41, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, 0x12, - 0x4d, 0x46, 0x41, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x41, - 0x44, 0x59, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x46, 0x41, 0x53, 0x54, 0x41, 0x54, 0x45, - 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x4d, 0x46, 0x41, 0x53, - 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x76, - 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x4b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x1a, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x5f, 0x4f, 0x52, 0x47, 0x5f, 0x49, - 0x44, 0x10, 0x01, 0x12, 0x21, 0x0a, 0x1d, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, - 0x54, 0x5f, 0x49, 0x44, 0x10, 0x02, 0x2a, 0x62, 0x0a, 0x15, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4b, 0x65, 0x79, 0x12, - 0x25, 0x0a, 0x21, 0x4d, 0x59, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x47, 0x53, - 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x59, 0x50, 0x52, 0x4f, 0x4a, - 0x45, 0x43, 0x54, 0x4f, 0x52, 0x47, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4b, 0x45, 0x59, 0x5f, - 0x4f, 0x52, 0x47, 0x5f, 0x4e, 0x41, 0x4d, 0x45, 0x10, 0x01, 0x2a, 0xd6, 0x01, 0x0a, 0x0c, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x17, 0x0a, 0x13, 0x53, - 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, 0x55, 0x41, - 0x4c, 0x53, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, - 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, 0x54, 0x48, - 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, - 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x53, 0x10, 0x02, 0x12, 0x23, 0x0a, - 0x1f, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x45, 0x51, - 0x55, 0x41, 0x4c, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, 0x53, 0x45, - 0x10, 0x03, 0x12, 0x28, 0x0a, 0x24, 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, - 0x4f, 0x44, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x53, 0x5f, 0x57, 0x49, 0x54, 0x48, 0x5f, 0x49, - 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, 0x53, 0x45, 0x10, 0x04, 0x12, 0x25, 0x0a, 0x21, - 0x53, 0x45, 0x41, 0x52, 0x43, 0x48, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x43, 0x4f, 0x4e, - 0x54, 0x41, 0x49, 0x4e, 0x53, 0x5f, 0x49, 0x47, 0x4e, 0x4f, 0x52, 0x45, 0x5f, 0x43, 0x41, 0x53, - 0x45, 0x10, 0x05, 0x32, 0x91, 0x23, 0x0a, 0x0b, 0x41, 0x75, 0x74, 0x68, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x07, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x10, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0a, 0x12, 0x08, 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, - 0x12, 0x47, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x0e, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x08, 0x12, 0x06, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x12, 0x4e, 0x0a, 0x08, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x17, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0b, 0x12, 0x09, - 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x47, 0x65, - 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x2a, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x56, 0x69, - 0x65, 0x77, 0x73, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x82, - 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x12, 0x6d, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x22, 0x24, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x0b, 0x12, 0x09, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x82, 0xb5, - 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x12, 0x83, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x29, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, - 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x56, 0x69, 0x65, 0x77, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x13, 0x12, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, - 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0xa1, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, - 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, - 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x16, 0x1a, 0x11, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, - 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x8d, 0x01, 0x0a, 0x10, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2f, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x17, 0x1a, 0x12, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, - 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x7d, 0x0a, 0x0e, 0x47, - 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x56, 0x69, 0x65, 0x77, 0x22, 0x2a, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, - 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, - 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x99, 0x01, 0x0a, 0x11, 0x43, - 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x12, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, - 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, - 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, - 0x0f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x96, 0x01, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x32, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x79, - 0x55, 0x73, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, - 0x22, 0x17, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, - 0x6c, 0x2f, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, - 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x92, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x4d, 0x79, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x61, 0x69, - 0x6c, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x22, 0x23, 0x2f, 0x75, 0x73, 0x65, 0x72, - 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x5f, 0x72, 0x65, 0x73, 0x65, - 0x6e, 0x64, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, - 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x64, 0x12, 0x7d, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, - 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x27, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, - 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, - 0x6f, 0x6e, 0x65, 0x56, 0x69, 0x65, 0x77, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x12, - 0x0f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, - 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x99, 0x01, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, - 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, - 0x68, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, - 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, 0x0f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, - 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x6f, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, - 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x11, 0x2a, 0x0f, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x82, 0xb5, 0x18, - 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x12, 0x94, 0x01, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x79, 0x55, 0x73, 0x65, - 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, - 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x2f, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, - 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, - 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x92, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x73, 0x65, - 0x6e, 0x64, 0x4d, 0x79, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x41, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x28, 0x22, 0x23, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x68, 0x6f, - 0x6e, 0x65, 0x2f, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x6e, 0x64, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, - 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x83, 0x01, 0x0a, - 0x10, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x29, 0x2e, 0x63, 0x61, 0x6f, 0x73, - 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x56, 0x69, 0x65, 0x77, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x82, - 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x12, 0x8d, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, - 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x21, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x73, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x75, - 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x82, - 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, - 0x65, 0x64, 0x12, 0xa1, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x79, 0x55, - 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, - 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, - 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x1a, 0x11, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, - 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x76, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x4d, - 0x66, 0x61, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x26, 0x2e, 0x63, 0x61, - 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x46, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x10, 0x12, 0x0e, 0x2f, 0x75, 0x73, - 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x73, 0x82, 0xb5, 0x18, 0x0f, 0x0a, - 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x8f, - 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, 0x79, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x12, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, - 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x1a, 0x1b, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x73, 0x2f, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, - 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, - 0x12, 0xa6, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x32, 0x2e, 0x63, 0x61, 0x6f, - 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x39, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, - 0x73, 0x2f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x78, 0x69, 0x74, 0x79, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, - 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0xbd, 0x01, 0x0a, 0x14, 0x53, 0x65, - 0x61, 0x72, 0x63, 0x68, 0x4d, 0x79, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, - 0x50, 0x73, 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x53, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x5f, 0x73, 0x65, 0x61, - 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, - 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0xb7, 0x01, 0x0a, 0x13, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x79, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, - 0x50, 0x12, 0x32, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x44, 0x50, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x54, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x2a, 0x39, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, - 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x69, 0x64, 0x70, 0x73, 0x2f, 0x7b, 0x69, - 0x64, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, - 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x7f, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x4d, 0x66, 0x61, 0x4f, 0x54, 0x50, - 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, - 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x66, 0x61, 0x4f, 0x74, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x75, 0x73, 0x65, - 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x73, 0x2f, 0x6f, 0x74, 0x70, 0x3a, 0x01, - 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, - 0x61, 0x74, 0x65, 0x64, 0x12, 0x88, 0x01, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, - 0x66, 0x61, 0x4f, 0x54, 0x50, 0x12, 0x26, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x4d, 0x66, 0x61, 0x4f, 0x74, 0x70, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x38, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x1a, 0x1a, 0x2f, - 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x73, 0x2f, 0x6f, 0x74, - 0x70, 0x2f, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, - 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x6d, 0x0a, 0x0c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x66, 0x61, 0x4f, 0x54, 0x50, 0x12, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, - 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x2a, 0x12, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2f, - 0x6d, 0x65, 0x2f, 0x6d, 0x66, 0x61, 0x73, 0x2f, 0x6f, 0x74, 0x70, 0x82, 0xb5, 0x18, 0x0f, 0x0a, - 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0xae, - 0x01, 0x0a, 0x11, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, - 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x1b, 0x22, 0x16, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x2f, 0x6d, - 0x65, 0x2f, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, - 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, - 0xbb, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x73, 0x12, 0x33, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, - 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x72, 0x67, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, - 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x4f, 0x72, 0x67, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x67, 0x6c, 0x6f, - 0x62, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x67, 0x73, 0x2f, - 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x3a, 0x01, 0x2a, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, - 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x8e, 0x01, - 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x5a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x50, 0x65, - 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, - 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x19, 0x12, 0x17, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x6d, 0x65, 0x82, 0xb5, 0x18, 0x0f, 0x0a, - 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x86, - 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x50, - 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x1a, 0x27, 0x2e, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, - 0x6c, 0x2e, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x79, - 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x11, 0x12, 0x0f, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x6d, 0x65, 0x82, 0xb5, 0x18, 0x0f, 0x0a, 0x0d, 0x61, 0x75, 0x74, 0x68, 0x65, 0x6e, - 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x64, 0x42, 0xb3, 0x01, 0x5a, 0x25, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, - 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x61, 0x75, 0x74, - 0x68, 0x92, 0x41, 0x88, 0x01, 0x12, 0x3b, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x20, 0x41, 0x50, - 0x49, 0x22, 0x2a, 0x12, 0x28, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, - 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x32, 0x03, 0x30, - 0x2e, 0x31, 0x2a, 0x01, 0x02, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x32, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x3a, 0x10, 0x61, 0x70, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6a, 0x73, 0x6f, 0x6e, 0x3a, 0x10, 0x61, 0x70, 0x70, - 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_auth_proto_rawDescOnce sync.Once - file_auth_proto_rawDescData = file_auth_proto_rawDesc -) - -func file_auth_proto_rawDescGZIP() []byte { - file_auth_proto_rawDescOnce.Do(func() { - file_auth_proto_rawDescData = protoimpl.X.CompressGZIP(file_auth_proto_rawDescData) - }) - return file_auth_proto_rawDescData -} - -var file_auth_proto_enumTypes = make([]protoimpl.EnumInfo, 9) -var file_auth_proto_msgTypes = make([]protoimpl.MessageInfo, 44) -var file_auth_proto_goTypes = []interface{}{ - (UserSessionState)(0), // 0: caos.zitadel.auth.api.v1.UserSessionState - (MachineKeyType)(0), // 1: caos.zitadel.auth.api.v1.MachineKeyType - (UserState)(0), // 2: caos.zitadel.auth.api.v1.UserState - (Gender)(0), // 3: caos.zitadel.auth.api.v1.Gender - (MfaType)(0), // 4: caos.zitadel.auth.api.v1.MfaType - (MFAState)(0), // 5: caos.zitadel.auth.api.v1.MFAState - (UserGrantSearchKey)(0), // 6: caos.zitadel.auth.api.v1.UserGrantSearchKey - (MyProjectOrgSearchKey)(0), // 7: caos.zitadel.auth.api.v1.MyProjectOrgSearchKey - (SearchMethod)(0), // 8: caos.zitadel.auth.api.v1.SearchMethod - (*UserSessionViews)(nil), // 9: caos.zitadel.auth.api.v1.UserSessionViews - (*UserSessionView)(nil), // 10: caos.zitadel.auth.api.v1.UserSessionView - (*UserView)(nil), // 11: caos.zitadel.auth.api.v1.UserView - (*MachineView)(nil), // 12: caos.zitadel.auth.api.v1.MachineView - (*MachineKeyView)(nil), // 13: caos.zitadel.auth.api.v1.MachineKeyView - (*HumanView)(nil), // 14: caos.zitadel.auth.api.v1.HumanView - (*UserProfile)(nil), // 15: caos.zitadel.auth.api.v1.UserProfile - (*UserProfileView)(nil), // 16: caos.zitadel.auth.api.v1.UserProfileView - (*UpdateUserProfileRequest)(nil), // 17: caos.zitadel.auth.api.v1.UpdateUserProfileRequest - (*ChangeUserNameRequest)(nil), // 18: caos.zitadel.auth.api.v1.ChangeUserNameRequest - (*UserEmail)(nil), // 19: caos.zitadel.auth.api.v1.UserEmail - (*UserEmailView)(nil), // 20: caos.zitadel.auth.api.v1.UserEmailView - (*VerifyMyUserEmailRequest)(nil), // 21: caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest - (*UpdateUserEmailRequest)(nil), // 22: caos.zitadel.auth.api.v1.UpdateUserEmailRequest - (*UserPhone)(nil), // 23: caos.zitadel.auth.api.v1.UserPhone - (*UserPhoneView)(nil), // 24: caos.zitadel.auth.api.v1.UserPhoneView - (*UpdateUserPhoneRequest)(nil), // 25: caos.zitadel.auth.api.v1.UpdateUserPhoneRequest - (*VerifyUserPhoneRequest)(nil), // 26: caos.zitadel.auth.api.v1.VerifyUserPhoneRequest - (*UserAddress)(nil), // 27: caos.zitadel.auth.api.v1.UserAddress - (*UserAddressView)(nil), // 28: caos.zitadel.auth.api.v1.UserAddressView - (*UpdateUserAddressRequest)(nil), // 29: caos.zitadel.auth.api.v1.UpdateUserAddressRequest - (*PasswordChange)(nil), // 30: caos.zitadel.auth.api.v1.PasswordChange - (*VerifyMfaOtp)(nil), // 31: caos.zitadel.auth.api.v1.VerifyMfaOtp - (*MultiFactors)(nil), // 32: caos.zitadel.auth.api.v1.MultiFactors - (*MultiFactor)(nil), // 33: caos.zitadel.auth.api.v1.MultiFactor - (*MfaOtpResponse)(nil), // 34: caos.zitadel.auth.api.v1.MfaOtpResponse - (*UserGrantSearchRequest)(nil), // 35: caos.zitadel.auth.api.v1.UserGrantSearchRequest - (*UserGrantSearchQuery)(nil), // 36: caos.zitadel.auth.api.v1.UserGrantSearchQuery - (*UserGrantSearchResponse)(nil), // 37: caos.zitadel.auth.api.v1.UserGrantSearchResponse - (*UserGrantView)(nil), // 38: caos.zitadel.auth.api.v1.UserGrantView - (*MyProjectOrgSearchRequest)(nil), // 39: caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest - (*MyProjectOrgSearchQuery)(nil), // 40: caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery - (*MyProjectOrgSearchResponse)(nil), // 41: caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse - (*Org)(nil), // 42: caos.zitadel.auth.api.v1.Org - (*MyPermissions)(nil), // 43: caos.zitadel.auth.api.v1.MyPermissions - (*ChangesRequest)(nil), // 44: caos.zitadel.auth.api.v1.ChangesRequest - (*Changes)(nil), // 45: caos.zitadel.auth.api.v1.Changes - (*Change)(nil), // 46: caos.zitadel.auth.api.v1.Change - (*PasswordComplexityPolicy)(nil), // 47: caos.zitadel.auth.api.v1.PasswordComplexityPolicy - (*ExternalIDPResponse)(nil), // 48: caos.zitadel.auth.api.v1.ExternalIDPResponse - (*ExternalIDPRemoveRequest)(nil), // 49: caos.zitadel.auth.api.v1.ExternalIDPRemoveRequest - (*ExternalIDPSearchRequest)(nil), // 50: caos.zitadel.auth.api.v1.ExternalIDPSearchRequest - (*ExternalIDPSearchResponse)(nil), // 51: caos.zitadel.auth.api.v1.ExternalIDPSearchResponse - (*ExternalIDPView)(nil), // 52: caos.zitadel.auth.api.v1.ExternalIDPView - (*timestamp.Timestamp)(nil), // 53: google.protobuf.Timestamp - (*message.LocalizedMessage)(nil), // 54: caos.zitadel.api.v1.LocalizedMessage - (*_struct.Struct)(nil), // 55: google.protobuf.Struct - (*empty.Empty)(nil), // 56: google.protobuf.Empty -} -var file_auth_proto_depIdxs = []int32{ - 10, // 0: caos.zitadel.auth.api.v1.UserSessionViews.user_sessions:type_name -> caos.zitadel.auth.api.v1.UserSessionView - 0, // 1: caos.zitadel.auth.api.v1.UserSessionView.auth_state:type_name -> caos.zitadel.auth.api.v1.UserSessionState - 2, // 2: caos.zitadel.auth.api.v1.UserView.state:type_name -> caos.zitadel.auth.api.v1.UserState - 53, // 3: caos.zitadel.auth.api.v1.UserView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 4: caos.zitadel.auth.api.v1.UserView.change_date:type_name -> google.protobuf.Timestamp - 53, // 5: caos.zitadel.auth.api.v1.UserView.last_login:type_name -> google.protobuf.Timestamp - 14, // 6: caos.zitadel.auth.api.v1.UserView.human:type_name -> caos.zitadel.auth.api.v1.HumanView - 12, // 7: caos.zitadel.auth.api.v1.UserView.machine:type_name -> caos.zitadel.auth.api.v1.MachineView - 53, // 8: caos.zitadel.auth.api.v1.MachineView.last_key_added:type_name -> google.protobuf.Timestamp - 1, // 9: caos.zitadel.auth.api.v1.MachineKeyView.type:type_name -> caos.zitadel.auth.api.v1.MachineKeyType - 53, // 10: caos.zitadel.auth.api.v1.MachineKeyView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 11: caos.zitadel.auth.api.v1.MachineKeyView.expiration_date:type_name -> google.protobuf.Timestamp - 53, // 12: caos.zitadel.auth.api.v1.HumanView.password_changed:type_name -> google.protobuf.Timestamp - 3, // 13: caos.zitadel.auth.api.v1.HumanView.gender:type_name -> caos.zitadel.auth.api.v1.Gender - 3, // 14: caos.zitadel.auth.api.v1.UserProfile.gender:type_name -> caos.zitadel.auth.api.v1.Gender - 53, // 15: caos.zitadel.auth.api.v1.UserProfile.creation_date:type_name -> google.protobuf.Timestamp - 53, // 16: caos.zitadel.auth.api.v1.UserProfile.change_date:type_name -> google.protobuf.Timestamp - 3, // 17: caos.zitadel.auth.api.v1.UserProfileView.gender:type_name -> caos.zitadel.auth.api.v1.Gender - 53, // 18: caos.zitadel.auth.api.v1.UserProfileView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 19: caos.zitadel.auth.api.v1.UserProfileView.change_date:type_name -> google.protobuf.Timestamp - 3, // 20: caos.zitadel.auth.api.v1.UpdateUserProfileRequest.gender:type_name -> caos.zitadel.auth.api.v1.Gender - 53, // 21: caos.zitadel.auth.api.v1.UserEmail.creation_date:type_name -> google.protobuf.Timestamp - 53, // 22: caos.zitadel.auth.api.v1.UserEmail.change_date:type_name -> google.protobuf.Timestamp - 53, // 23: caos.zitadel.auth.api.v1.UserEmailView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 24: caos.zitadel.auth.api.v1.UserEmailView.change_date:type_name -> google.protobuf.Timestamp - 53, // 25: caos.zitadel.auth.api.v1.UserPhone.creation_date:type_name -> google.protobuf.Timestamp - 53, // 26: caos.zitadel.auth.api.v1.UserPhone.change_date:type_name -> google.protobuf.Timestamp - 53, // 27: caos.zitadel.auth.api.v1.UserPhoneView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 28: caos.zitadel.auth.api.v1.UserPhoneView.change_date:type_name -> google.protobuf.Timestamp - 53, // 29: caos.zitadel.auth.api.v1.UserAddress.creation_date:type_name -> google.protobuf.Timestamp - 53, // 30: caos.zitadel.auth.api.v1.UserAddress.change_date:type_name -> google.protobuf.Timestamp - 53, // 31: caos.zitadel.auth.api.v1.UserAddressView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 32: caos.zitadel.auth.api.v1.UserAddressView.change_date:type_name -> google.protobuf.Timestamp - 33, // 33: caos.zitadel.auth.api.v1.MultiFactors.mfas:type_name -> caos.zitadel.auth.api.v1.MultiFactor - 4, // 34: caos.zitadel.auth.api.v1.MultiFactor.type:type_name -> caos.zitadel.auth.api.v1.MfaType - 5, // 35: caos.zitadel.auth.api.v1.MultiFactor.state:type_name -> caos.zitadel.auth.api.v1.MFAState - 5, // 36: caos.zitadel.auth.api.v1.MfaOtpResponse.state:type_name -> caos.zitadel.auth.api.v1.MFAState - 6, // 37: caos.zitadel.auth.api.v1.UserGrantSearchRequest.sorting_column:type_name -> caos.zitadel.auth.api.v1.UserGrantSearchKey - 36, // 38: caos.zitadel.auth.api.v1.UserGrantSearchRequest.queries:type_name -> caos.zitadel.auth.api.v1.UserGrantSearchQuery - 6, // 39: caos.zitadel.auth.api.v1.UserGrantSearchQuery.key:type_name -> caos.zitadel.auth.api.v1.UserGrantSearchKey - 8, // 40: caos.zitadel.auth.api.v1.UserGrantSearchQuery.method:type_name -> caos.zitadel.auth.api.v1.SearchMethod - 38, // 41: caos.zitadel.auth.api.v1.UserGrantSearchResponse.result:type_name -> caos.zitadel.auth.api.v1.UserGrantView - 53, // 42: caos.zitadel.auth.api.v1.UserGrantSearchResponse.view_timestamp:type_name -> google.protobuf.Timestamp - 40, // 43: caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest.queries:type_name -> caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery - 7, // 44: caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.key:type_name -> caos.zitadel.auth.api.v1.MyProjectOrgSearchKey - 8, // 45: caos.zitadel.auth.api.v1.MyProjectOrgSearchQuery.method:type_name -> caos.zitadel.auth.api.v1.SearchMethod - 42, // 46: caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse.result:type_name -> caos.zitadel.auth.api.v1.Org - 46, // 47: caos.zitadel.auth.api.v1.Changes.changes:type_name -> caos.zitadel.auth.api.v1.Change - 53, // 48: caos.zitadel.auth.api.v1.Change.change_date:type_name -> google.protobuf.Timestamp - 54, // 49: caos.zitadel.auth.api.v1.Change.event_type:type_name -> caos.zitadel.api.v1.LocalizedMessage - 55, // 50: caos.zitadel.auth.api.v1.Change.data:type_name -> google.protobuf.Struct - 53, // 51: caos.zitadel.auth.api.v1.PasswordComplexityPolicy.creation_date:type_name -> google.protobuf.Timestamp - 53, // 52: caos.zitadel.auth.api.v1.PasswordComplexityPolicy.change_date:type_name -> google.protobuf.Timestamp - 52, // 53: caos.zitadel.auth.api.v1.ExternalIDPSearchResponse.result:type_name -> caos.zitadel.auth.api.v1.ExternalIDPView - 53, // 54: caos.zitadel.auth.api.v1.ExternalIDPSearchResponse.view_timestamp:type_name -> google.protobuf.Timestamp - 53, // 55: caos.zitadel.auth.api.v1.ExternalIDPView.creation_date:type_name -> google.protobuf.Timestamp - 53, // 56: caos.zitadel.auth.api.v1.ExternalIDPView.change_date:type_name -> google.protobuf.Timestamp - 56, // 57: caos.zitadel.auth.api.v1.AuthService.Healthz:input_type -> google.protobuf.Empty - 56, // 58: caos.zitadel.auth.api.v1.AuthService.Ready:input_type -> google.protobuf.Empty - 56, // 59: caos.zitadel.auth.api.v1.AuthService.Validate:input_type -> google.protobuf.Empty - 56, // 60: caos.zitadel.auth.api.v1.AuthService.GetMyUserSessions:input_type -> google.protobuf.Empty - 56, // 61: caos.zitadel.auth.api.v1.AuthService.GetMyUser:input_type -> google.protobuf.Empty - 56, // 62: caos.zitadel.auth.api.v1.AuthService.GetMyUserProfile:input_type -> google.protobuf.Empty - 17, // 63: caos.zitadel.auth.api.v1.AuthService.UpdateMyUserProfile:input_type -> caos.zitadel.auth.api.v1.UpdateUserProfileRequest - 18, // 64: caos.zitadel.auth.api.v1.AuthService.ChangeMyUserName:input_type -> caos.zitadel.auth.api.v1.ChangeUserNameRequest - 56, // 65: caos.zitadel.auth.api.v1.AuthService.GetMyUserEmail:input_type -> google.protobuf.Empty - 22, // 66: caos.zitadel.auth.api.v1.AuthService.ChangeMyUserEmail:input_type -> caos.zitadel.auth.api.v1.UpdateUserEmailRequest - 21, // 67: caos.zitadel.auth.api.v1.AuthService.VerifyMyUserEmail:input_type -> caos.zitadel.auth.api.v1.VerifyMyUserEmailRequest - 56, // 68: caos.zitadel.auth.api.v1.AuthService.ResendMyEmailVerificationMail:input_type -> google.protobuf.Empty - 56, // 69: caos.zitadel.auth.api.v1.AuthService.GetMyUserPhone:input_type -> google.protobuf.Empty - 25, // 70: caos.zitadel.auth.api.v1.AuthService.ChangeMyUserPhone:input_type -> caos.zitadel.auth.api.v1.UpdateUserPhoneRequest - 56, // 71: caos.zitadel.auth.api.v1.AuthService.RemoveMyUserPhone:input_type -> google.protobuf.Empty - 26, // 72: caos.zitadel.auth.api.v1.AuthService.VerifyMyUserPhone:input_type -> caos.zitadel.auth.api.v1.VerifyUserPhoneRequest - 56, // 73: caos.zitadel.auth.api.v1.AuthService.ResendMyPhoneVerificationCode:input_type -> google.protobuf.Empty - 56, // 74: caos.zitadel.auth.api.v1.AuthService.GetMyUserAddress:input_type -> google.protobuf.Empty - 44, // 75: caos.zitadel.auth.api.v1.AuthService.GetMyUserChanges:input_type -> caos.zitadel.auth.api.v1.ChangesRequest - 29, // 76: caos.zitadel.auth.api.v1.AuthService.UpdateMyUserAddress:input_type -> caos.zitadel.auth.api.v1.UpdateUserAddressRequest - 56, // 77: caos.zitadel.auth.api.v1.AuthService.GetMyMfas:input_type -> google.protobuf.Empty - 30, // 78: caos.zitadel.auth.api.v1.AuthService.ChangeMyPassword:input_type -> caos.zitadel.auth.api.v1.PasswordChange - 56, // 79: caos.zitadel.auth.api.v1.AuthService.GetMyPasswordComplexityPolicy:input_type -> google.protobuf.Empty - 50, // 80: caos.zitadel.auth.api.v1.AuthService.SearchMyExternalIDPs:input_type -> caos.zitadel.auth.api.v1.ExternalIDPSearchRequest - 49, // 81: caos.zitadel.auth.api.v1.AuthService.RemoveMyExternalIDP:input_type -> caos.zitadel.auth.api.v1.ExternalIDPRemoveRequest - 56, // 82: caos.zitadel.auth.api.v1.AuthService.AddMfaOTP:input_type -> google.protobuf.Empty - 31, // 83: caos.zitadel.auth.api.v1.AuthService.VerifyMfaOTP:input_type -> caos.zitadel.auth.api.v1.VerifyMfaOtp - 56, // 84: caos.zitadel.auth.api.v1.AuthService.RemoveMfaOTP:input_type -> google.protobuf.Empty - 35, // 85: caos.zitadel.auth.api.v1.AuthService.SearchMyUserGrant:input_type -> caos.zitadel.auth.api.v1.UserGrantSearchRequest - 39, // 86: caos.zitadel.auth.api.v1.AuthService.SearchMyProjectOrgs:input_type -> caos.zitadel.auth.api.v1.MyProjectOrgSearchRequest - 56, // 87: caos.zitadel.auth.api.v1.AuthService.GetMyZitadelPermissions:input_type -> google.protobuf.Empty - 56, // 88: caos.zitadel.auth.api.v1.AuthService.GetMyProjectPermissions:input_type -> google.protobuf.Empty - 56, // 89: caos.zitadel.auth.api.v1.AuthService.Healthz:output_type -> google.protobuf.Empty - 56, // 90: caos.zitadel.auth.api.v1.AuthService.Ready:output_type -> google.protobuf.Empty - 55, // 91: caos.zitadel.auth.api.v1.AuthService.Validate:output_type -> google.protobuf.Struct - 9, // 92: caos.zitadel.auth.api.v1.AuthService.GetMyUserSessions:output_type -> caos.zitadel.auth.api.v1.UserSessionViews - 11, // 93: caos.zitadel.auth.api.v1.AuthService.GetMyUser:output_type -> caos.zitadel.auth.api.v1.UserView - 16, // 94: caos.zitadel.auth.api.v1.AuthService.GetMyUserProfile:output_type -> caos.zitadel.auth.api.v1.UserProfileView - 15, // 95: caos.zitadel.auth.api.v1.AuthService.UpdateMyUserProfile:output_type -> caos.zitadel.auth.api.v1.UserProfile - 56, // 96: caos.zitadel.auth.api.v1.AuthService.ChangeMyUserName:output_type -> google.protobuf.Empty - 20, // 97: caos.zitadel.auth.api.v1.AuthService.GetMyUserEmail:output_type -> caos.zitadel.auth.api.v1.UserEmailView - 19, // 98: caos.zitadel.auth.api.v1.AuthService.ChangeMyUserEmail:output_type -> caos.zitadel.auth.api.v1.UserEmail - 56, // 99: caos.zitadel.auth.api.v1.AuthService.VerifyMyUserEmail:output_type -> google.protobuf.Empty - 56, // 100: caos.zitadel.auth.api.v1.AuthService.ResendMyEmailVerificationMail:output_type -> google.protobuf.Empty - 24, // 101: caos.zitadel.auth.api.v1.AuthService.GetMyUserPhone:output_type -> caos.zitadel.auth.api.v1.UserPhoneView - 23, // 102: caos.zitadel.auth.api.v1.AuthService.ChangeMyUserPhone:output_type -> caos.zitadel.auth.api.v1.UserPhone - 56, // 103: caos.zitadel.auth.api.v1.AuthService.RemoveMyUserPhone:output_type -> google.protobuf.Empty - 56, // 104: caos.zitadel.auth.api.v1.AuthService.VerifyMyUserPhone:output_type -> google.protobuf.Empty - 56, // 105: caos.zitadel.auth.api.v1.AuthService.ResendMyPhoneVerificationCode:output_type -> google.protobuf.Empty - 28, // 106: caos.zitadel.auth.api.v1.AuthService.GetMyUserAddress:output_type -> caos.zitadel.auth.api.v1.UserAddressView - 45, // 107: caos.zitadel.auth.api.v1.AuthService.GetMyUserChanges:output_type -> caos.zitadel.auth.api.v1.Changes - 27, // 108: caos.zitadel.auth.api.v1.AuthService.UpdateMyUserAddress:output_type -> caos.zitadel.auth.api.v1.UserAddress - 32, // 109: caos.zitadel.auth.api.v1.AuthService.GetMyMfas:output_type -> caos.zitadel.auth.api.v1.MultiFactors - 56, // 110: caos.zitadel.auth.api.v1.AuthService.ChangeMyPassword:output_type -> google.protobuf.Empty - 47, // 111: caos.zitadel.auth.api.v1.AuthService.GetMyPasswordComplexityPolicy:output_type -> caos.zitadel.auth.api.v1.PasswordComplexityPolicy - 51, // 112: caos.zitadel.auth.api.v1.AuthService.SearchMyExternalIDPs:output_type -> caos.zitadel.auth.api.v1.ExternalIDPSearchResponse - 56, // 113: caos.zitadel.auth.api.v1.AuthService.RemoveMyExternalIDP:output_type -> google.protobuf.Empty - 34, // 114: caos.zitadel.auth.api.v1.AuthService.AddMfaOTP:output_type -> caos.zitadel.auth.api.v1.MfaOtpResponse - 56, // 115: caos.zitadel.auth.api.v1.AuthService.VerifyMfaOTP:output_type -> google.protobuf.Empty - 56, // 116: caos.zitadel.auth.api.v1.AuthService.RemoveMfaOTP:output_type -> google.protobuf.Empty - 37, // 117: caos.zitadel.auth.api.v1.AuthService.SearchMyUserGrant:output_type -> caos.zitadel.auth.api.v1.UserGrantSearchResponse - 41, // 118: caos.zitadel.auth.api.v1.AuthService.SearchMyProjectOrgs:output_type -> caos.zitadel.auth.api.v1.MyProjectOrgSearchResponse - 43, // 119: caos.zitadel.auth.api.v1.AuthService.GetMyZitadelPermissions:output_type -> caos.zitadel.auth.api.v1.MyPermissions - 43, // 120: caos.zitadel.auth.api.v1.AuthService.GetMyProjectPermissions:output_type -> caos.zitadel.auth.api.v1.MyPermissions - 89, // [89:121] is the sub-list for method output_type - 57, // [57:89] is the sub-list for method input_type - 57, // [57:57] is the sub-list for extension type_name - 57, // [57:57] is the sub-list for extension extendee - 0, // [0:57] is the sub-list for field type_name -} - -func init() { file_auth_proto_init() } -func file_auth_proto_init() { - if File_auth_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_auth_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserSessionViews); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserSessionView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MachineView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MachineKeyView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HumanView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserProfile); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserProfileView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserProfileRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeUserNameRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserEmail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserEmailView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyMyUserEmailRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserEmailRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserPhone); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserPhoneView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserPhoneRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyUserPhoneRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAddress); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAddressView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserAddressRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordChange); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VerifyMfaOtp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MultiFactors); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MultiFactor); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MfaOtpResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGrantView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MyProjectOrgSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MyProjectOrgSearchQuery); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MyProjectOrgSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Org); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MyPermissions); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Changes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Change); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PasswordComplexityPolicy); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalIDPResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalIDPRemoveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalIDPSearchRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalIDPSearchResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_auth_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExternalIDPView); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_auth_proto_msgTypes[2].OneofWrappers = []interface{}{ - (*UserView_Human)(nil), - (*UserView_Machine)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_auth_proto_rawDesc, - NumEnums: 9, - NumMessages: 44, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_auth_proto_goTypes, - DependencyIndexes: file_auth_proto_depIdxs, - EnumInfos: file_auth_proto_enumTypes, - MessageInfos: file_auth_proto_msgTypes, - }.Build() - File_auth_proto = out.File - file_auth_proto_rawDesc = nil - file_auth_proto_goTypes = nil - file_auth_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// AuthServiceClient is the client API for AuthService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AuthServiceClient interface { - // Readiness - Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) - // Authorization - GetMyUserSessions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserSessionViews, error) - //User - GetMyUser(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserView, error) - GetMyUserProfile(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserProfileView, error) - UpdateMyUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) - ChangeMyUserName(ctx context.Context, in *ChangeUserNameRequest, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyUserEmail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserEmailView, error) - ChangeMyUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) - VerifyMyUserEmail(ctx context.Context, in *VerifyMyUserEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error) - ResendMyEmailVerificationMail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyUserPhone(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserPhoneView, error) - ChangeMyUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) - RemoveMyUserPhone(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - VerifyMyUserPhone(ctx context.Context, in *VerifyUserPhoneRequest, opts ...grpc.CallOption) (*empty.Empty, error) - ResendMyPhoneVerificationCode(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyUserAddress(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserAddressView, error) - GetMyUserChanges(ctx context.Context, in *ChangesRequest, opts ...grpc.CallOption) (*Changes, error) - UpdateMyUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) - GetMyMfas(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactors, error) - //Password - ChangeMyPassword(ctx context.Context, in *PasswordChange, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) - //ExternalIDP - SearchMyExternalIDPs(ctx context.Context, in *ExternalIDPSearchRequest, opts ...grpc.CallOption) (*ExternalIDPSearchResponse, error) - RemoveMyExternalIDP(ctx context.Context, in *ExternalIDPRemoveRequest, opts ...grpc.CallOption) (*empty.Empty, error) - // MFA - AddMfaOTP(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MfaOtpResponse, error) - VerifyMfaOTP(ctx context.Context, in *VerifyMfaOtp, opts ...grpc.CallOption) (*empty.Empty, error) - RemoveMfaOTP(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - SearchMyUserGrant(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) - SearchMyProjectOrgs(ctx context.Context, in *MyProjectOrgSearchRequest, opts ...grpc.CallOption) (*MyProjectOrgSearchResponse, error) - //Permission - GetMyZitadelPermissions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MyPermissions, error) - GetMyProjectPermissions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MyPermissions, error) -} - -type authServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient { - return &authServiceClient{cc} -} - -func (c *authServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/Healthz", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/Ready", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { - out := new(_struct.Struct) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/Validate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUserSessions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserSessionViews, error) { - out := new(UserSessionViews) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUser(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserView, error) { - out := new(UserView) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUserProfile(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserProfileView, error) { - out := new(UserProfileView) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) UpdateMyUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) { - out := new(UserProfile) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) ChangeMyUserName(ctx context.Context, in *ChangeUserNameRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserName", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUserEmail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserEmailView, error) { - out := new(UserEmailView) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) ChangeMyUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) { - out := new(UserEmail) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) VerifyMyUserEmail(ctx context.Context, in *VerifyMyUserEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) ResendMyEmailVerificationMail(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUserPhone(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserPhoneView, error) { - out := new(UserPhoneView) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) ChangeMyUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) { - out := new(UserPhone) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) RemoveMyUserPhone(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) VerifyMyUserPhone(ctx context.Context, in *VerifyUserPhoneRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) ResendMyPhoneVerificationCode(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUserAddress(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserAddressView, error) { - out := new(UserAddressView) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyUserChanges(ctx context.Context, in *ChangesRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) UpdateMyUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) { - out := new(UserAddress) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyMfas(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactors, error) { - out := new(MultiFactors) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyMfas", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) ChangeMyPassword(ctx context.Context, in *PasswordChange, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { - out := new(PasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) SearchMyExternalIDPs(ctx context.Context, in *ExternalIDPSearchRequest, opts ...grpc.CallOption) (*ExternalIDPSearchResponse, error) { - out := new(ExternalIDPSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/SearchMyExternalIDPs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) RemoveMyExternalIDP(ctx context.Context, in *ExternalIDPRemoveRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/RemoveMyExternalIDP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) AddMfaOTP(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MfaOtpResponse, error) { - out := new(MfaOtpResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) VerifyMfaOTP(ctx context.Context, in *VerifyMfaOtp, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) RemoveMfaOTP(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) SearchMyUserGrant(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { - out := new(UserGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) SearchMyProjectOrgs(ctx context.Context, in *MyProjectOrgSearchRequest, opts ...grpc.CallOption) (*MyProjectOrgSearchResponse, error) { - out := new(MyProjectOrgSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyZitadelPermissions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MyPermissions, error) { - out := new(MyPermissions) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authServiceClient) GetMyProjectPermissions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MyPermissions, error) { - out := new(MyPermissions) - err := c.cc.Invoke(ctx, "/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AuthServiceServer is the server API for AuthService service. -type AuthServiceServer interface { - // Readiness - Healthz(context.Context, *empty.Empty) (*empty.Empty, error) - Ready(context.Context, *empty.Empty) (*empty.Empty, error) - Validate(context.Context, *empty.Empty) (*_struct.Struct, error) - // Authorization - GetMyUserSessions(context.Context, *empty.Empty) (*UserSessionViews, error) - //User - GetMyUser(context.Context, *empty.Empty) (*UserView, error) - GetMyUserProfile(context.Context, *empty.Empty) (*UserProfileView, error) - UpdateMyUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) - ChangeMyUserName(context.Context, *ChangeUserNameRequest) (*empty.Empty, error) - GetMyUserEmail(context.Context, *empty.Empty) (*UserEmailView, error) - ChangeMyUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) - VerifyMyUserEmail(context.Context, *VerifyMyUserEmailRequest) (*empty.Empty, error) - ResendMyEmailVerificationMail(context.Context, *empty.Empty) (*empty.Empty, error) - GetMyUserPhone(context.Context, *empty.Empty) (*UserPhoneView, error) - ChangeMyUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) - RemoveMyUserPhone(context.Context, *empty.Empty) (*empty.Empty, error) - VerifyMyUserPhone(context.Context, *VerifyUserPhoneRequest) (*empty.Empty, error) - ResendMyPhoneVerificationCode(context.Context, *empty.Empty) (*empty.Empty, error) - GetMyUserAddress(context.Context, *empty.Empty) (*UserAddressView, error) - GetMyUserChanges(context.Context, *ChangesRequest) (*Changes, error) - UpdateMyUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) - GetMyMfas(context.Context, *empty.Empty) (*MultiFactors, error) - //Password - ChangeMyPassword(context.Context, *PasswordChange) (*empty.Empty, error) - GetMyPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicy, error) - //ExternalIDP - SearchMyExternalIDPs(context.Context, *ExternalIDPSearchRequest) (*ExternalIDPSearchResponse, error) - RemoveMyExternalIDP(context.Context, *ExternalIDPRemoveRequest) (*empty.Empty, error) - // MFA - AddMfaOTP(context.Context, *empty.Empty) (*MfaOtpResponse, error) - VerifyMfaOTP(context.Context, *VerifyMfaOtp) (*empty.Empty, error) - RemoveMfaOTP(context.Context, *empty.Empty) (*empty.Empty, error) - SearchMyUserGrant(context.Context, *UserGrantSearchRequest) (*UserGrantSearchResponse, error) - SearchMyProjectOrgs(context.Context, *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) - //Permission - GetMyZitadelPermissions(context.Context, *empty.Empty) (*MyPermissions, error) - GetMyProjectPermissions(context.Context, *empty.Empty) (*MyPermissions, error) -} - -// UnimplementedAuthServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAuthServiceServer struct { -} - -func (*UnimplementedAuthServiceServer) Healthz(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") -} -func (*UnimplementedAuthServiceServer) Ready(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") -} -func (*UnimplementedAuthServiceServer) Validate(context.Context, *empty.Empty) (*_struct.Struct, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserSessions(context.Context, *empty.Empty) (*UserSessionViews, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUserSessions not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUser(context.Context, *empty.Empty) (*UserView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUser not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserProfile(context.Context, *empty.Empty) (*UserProfileView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUserProfile not implemented") -} -func (*UnimplementedAuthServiceServer) UpdateMyUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMyUserProfile not implemented") -} -func (*UnimplementedAuthServiceServer) ChangeMyUserName(context.Context, *ChangeUserNameRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeMyUserName not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserEmail(context.Context, *empty.Empty) (*UserEmailView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUserEmail not implemented") -} -func (*UnimplementedAuthServiceServer) ChangeMyUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeMyUserEmail not implemented") -} -func (*UnimplementedAuthServiceServer) VerifyMyUserEmail(context.Context, *VerifyMyUserEmailRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyMyUserEmail not implemented") -} -func (*UnimplementedAuthServiceServer) ResendMyEmailVerificationMail(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendMyEmailVerificationMail not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserPhone(context.Context, *empty.Empty) (*UserPhoneView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUserPhone not implemented") -} -func (*UnimplementedAuthServiceServer) ChangeMyUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeMyUserPhone not implemented") -} -func (*UnimplementedAuthServiceServer) RemoveMyUserPhone(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMyUserPhone not implemented") -} -func (*UnimplementedAuthServiceServer) VerifyMyUserPhone(context.Context, *VerifyUserPhoneRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyMyUserPhone not implemented") -} -func (*UnimplementedAuthServiceServer) ResendMyPhoneVerificationCode(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendMyPhoneVerificationCode not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserAddress(context.Context, *empty.Empty) (*UserAddressView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUserAddress not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyUserChanges(context.Context, *ChangesRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyUserChanges not implemented") -} -func (*UnimplementedAuthServiceServer) UpdateMyUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateMyUserAddress not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyMfas(context.Context, *empty.Empty) (*MultiFactors, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyMfas not implemented") -} -func (*UnimplementedAuthServiceServer) ChangeMyPassword(context.Context, *PasswordChange) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeMyPassword not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyPasswordComplexityPolicy not implemented") -} -func (*UnimplementedAuthServiceServer) SearchMyExternalIDPs(context.Context, *ExternalIDPSearchRequest) (*ExternalIDPSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyExternalIDPs not implemented") -} -func (*UnimplementedAuthServiceServer) RemoveMyExternalIDP(context.Context, *ExternalIDPRemoveRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMyExternalIDP not implemented") -} -func (*UnimplementedAuthServiceServer) AddMfaOTP(context.Context, *empty.Empty) (*MfaOtpResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMfaOTP not implemented") -} -func (*UnimplementedAuthServiceServer) VerifyMfaOTP(context.Context, *VerifyMfaOtp) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyMfaOTP not implemented") -} -func (*UnimplementedAuthServiceServer) RemoveMfaOTP(context.Context, *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMfaOTP not implemented") -} -func (*UnimplementedAuthServiceServer) SearchMyUserGrant(context.Context, *UserGrantSearchRequest) (*UserGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyUserGrant not implemented") -} -func (*UnimplementedAuthServiceServer) SearchMyProjectOrgs(context.Context, *MyProjectOrgSearchRequest) (*MyProjectOrgSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyProjectOrgs not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyZitadelPermissions(context.Context, *empty.Empty) (*MyPermissions, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyZitadelPermissions not implemented") -} -func (*UnimplementedAuthServiceServer) GetMyProjectPermissions(context.Context, *empty.Empty) (*MyPermissions, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyProjectPermissions not implemented") -} - -func RegisterAuthServiceServer(s *grpc.Server, srv AuthServiceServer) { - s.RegisterService(&_AuthService_serviceDesc, srv) -} - -func _AuthService_Healthz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).Healthz(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/Healthz", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).Healthz(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_Ready_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).Ready(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/Ready", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).Ready(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).Validate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/Validate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).Validate(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUserSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUserSessions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUserSessions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUserSessions(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUser(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUserProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUserProfile(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_UpdateMyUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserProfileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).UpdateMyUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).UpdateMyUserProfile(ctx, req.(*UpdateUserProfileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_ChangeMyUserName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeUserNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ChangeMyUserName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ChangeMyUserName(ctx, req.(*ChangeUserNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUserEmail(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_ChangeMyUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserEmailRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ChangeMyUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ChangeMyUserEmail(ctx, req.(*UpdateUserEmailRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_VerifyMyUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyMyUserEmailRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyMyUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyMyUserEmail(ctx, req.(*VerifyMyUserEmailRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_ResendMyEmailVerificationMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ResendMyEmailVerificationMail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/ResendMyEmailVerificationMail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ResendMyEmailVerificationMail(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUserPhone(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_ChangeMyUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserPhoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ChangeMyUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/ChangeMyUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ChangeMyUserPhone(ctx, req.(*UpdateUserPhoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_RemoveMyUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RemoveMyUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/RemoveMyUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RemoveMyUserPhone(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_VerifyMyUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyUserPhoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyMyUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/VerifyMyUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyMyUserPhone(ctx, req.(*VerifyUserPhoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_ResendMyPhoneVerificationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ResendMyPhoneVerificationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/ResendMyPhoneVerificationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ResendMyPhoneVerificationCode(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUserAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUserAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUserAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUserAddress(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyUserChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyUserChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyUserChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyUserChanges(ctx, req.(*ChangesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_UpdateMyUserAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).UpdateMyUserAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/UpdateMyUserAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).UpdateMyUserAddress(ctx, req.(*UpdateUserAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyMfas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyMfas(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyMfas", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyMfas(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_ChangeMyPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).ChangeMyPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/ChangeMyPassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).ChangeMyPassword(ctx, req.(*PasswordChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyPasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyPasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyPasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyPasswordComplexityPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_SearchMyExternalIDPs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExternalIDPSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SearchMyExternalIDPs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/SearchMyExternalIDPs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SearchMyExternalIDPs(ctx, req.(*ExternalIDPSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_RemoveMyExternalIDP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExternalIDPRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RemoveMyExternalIDP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/RemoveMyExternalIDP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RemoveMyExternalIDP(ctx, req.(*ExternalIDPRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_AddMfaOTP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).AddMfaOTP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/AddMfaOTP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).AddMfaOTP(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_VerifyMfaOTP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyMfaOtp) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).VerifyMfaOTP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/VerifyMfaOTP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).VerifyMfaOTP(ctx, req.(*VerifyMfaOtp)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_RemoveMfaOTP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).RemoveMfaOTP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/RemoveMfaOTP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).RemoveMfaOTP(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_SearchMyUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SearchMyUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/SearchMyUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SearchMyUserGrant(ctx, req.(*UserGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_SearchMyProjectOrgs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MyProjectOrgSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).SearchMyProjectOrgs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/SearchMyProjectOrgs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).SearchMyProjectOrgs(ctx, req.(*MyProjectOrgSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyZitadelPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyZitadelPermissions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyZitadelPermissions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyZitadelPermissions(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthService_GetMyProjectPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthServiceServer).GetMyProjectPermissions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.auth.api.v1.AuthService/GetMyProjectPermissions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthServiceServer).GetMyProjectPermissions(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _AuthService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "caos.zitadel.auth.api.v1.AuthService", - HandlerType: (*AuthServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Healthz", - Handler: _AuthService_Healthz_Handler, - }, - { - MethodName: "Ready", - Handler: _AuthService_Ready_Handler, - }, - { - MethodName: "Validate", - Handler: _AuthService_Validate_Handler, - }, - { - MethodName: "GetMyUserSessions", - Handler: _AuthService_GetMyUserSessions_Handler, - }, - { - MethodName: "GetMyUser", - Handler: _AuthService_GetMyUser_Handler, - }, - { - MethodName: "GetMyUserProfile", - Handler: _AuthService_GetMyUserProfile_Handler, - }, - { - MethodName: "UpdateMyUserProfile", - Handler: _AuthService_UpdateMyUserProfile_Handler, - }, - { - MethodName: "ChangeMyUserName", - Handler: _AuthService_ChangeMyUserName_Handler, - }, - { - MethodName: "GetMyUserEmail", - Handler: _AuthService_GetMyUserEmail_Handler, - }, - { - MethodName: "ChangeMyUserEmail", - Handler: _AuthService_ChangeMyUserEmail_Handler, - }, - { - MethodName: "VerifyMyUserEmail", - Handler: _AuthService_VerifyMyUserEmail_Handler, - }, - { - MethodName: "ResendMyEmailVerificationMail", - Handler: _AuthService_ResendMyEmailVerificationMail_Handler, - }, - { - MethodName: "GetMyUserPhone", - Handler: _AuthService_GetMyUserPhone_Handler, - }, - { - MethodName: "ChangeMyUserPhone", - Handler: _AuthService_ChangeMyUserPhone_Handler, - }, - { - MethodName: "RemoveMyUserPhone", - Handler: _AuthService_RemoveMyUserPhone_Handler, - }, - { - MethodName: "VerifyMyUserPhone", - Handler: _AuthService_VerifyMyUserPhone_Handler, - }, - { - MethodName: "ResendMyPhoneVerificationCode", - Handler: _AuthService_ResendMyPhoneVerificationCode_Handler, - }, - { - MethodName: "GetMyUserAddress", - Handler: _AuthService_GetMyUserAddress_Handler, - }, - { - MethodName: "GetMyUserChanges", - Handler: _AuthService_GetMyUserChanges_Handler, - }, - { - MethodName: "UpdateMyUserAddress", - Handler: _AuthService_UpdateMyUserAddress_Handler, - }, - { - MethodName: "GetMyMfas", - Handler: _AuthService_GetMyMfas_Handler, - }, - { - MethodName: "ChangeMyPassword", - Handler: _AuthService_ChangeMyPassword_Handler, - }, - { - MethodName: "GetMyPasswordComplexityPolicy", - Handler: _AuthService_GetMyPasswordComplexityPolicy_Handler, - }, - { - MethodName: "SearchMyExternalIDPs", - Handler: _AuthService_SearchMyExternalIDPs_Handler, - }, - { - MethodName: "RemoveMyExternalIDP", - Handler: _AuthService_RemoveMyExternalIDP_Handler, - }, - { - MethodName: "AddMfaOTP", - Handler: _AuthService_AddMfaOTP_Handler, - }, - { - MethodName: "VerifyMfaOTP", - Handler: _AuthService_VerifyMfaOTP_Handler, - }, - { - MethodName: "RemoveMfaOTP", - Handler: _AuthService_RemoveMfaOTP_Handler, - }, - { - MethodName: "SearchMyUserGrant", - Handler: _AuthService_SearchMyUserGrant_Handler, - }, - { - MethodName: "SearchMyProjectOrgs", - Handler: _AuthService_SearchMyProjectOrgs_Handler, - }, - { - MethodName: "GetMyZitadelPermissions", - Handler: _AuthService_GetMyZitadelPermissions_Handler, - }, - { - MethodName: "GetMyProjectPermissions", - Handler: _AuthService_GetMyProjectPermissions_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "auth.proto", -} diff --git a/pkg/grpc/auth/auth.pb.gw.go b/pkg/grpc/auth/auth.pb.gw.go deleted file mode 100644 index 1939105835..0000000000 --- a/pkg/grpc/auth/auth.pb.gw.go +++ /dev/null @@ -1,2485 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: auth.proto - -/* -Package auth is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package auth - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/empty" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_AuthService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Healthz(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Healthz(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Ready(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Ready(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Validate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Validate(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserSessions_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserSessions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUserSessions_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyUserSessions(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyUser_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUser_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyUser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserProfile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyUserProfile(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_UpdateMyUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserProfileRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateMyUserProfile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_UpdateMyUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserProfileRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateMyUserProfile(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyUserName_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeUserNameRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyUserName(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_ChangeMyUserName_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeUserNameRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeMyUserName(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyUserEmail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_ChangeMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeMyUserEmail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_VerifyMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMyUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.VerifyMyUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_VerifyMyUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMyUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.VerifyMyUserEmail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_ResendMyEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ResendMyEmailVerificationMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_ResendMyEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ResendMyEmailVerificationMail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_ChangeMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeMyUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_RemoveMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemoveMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_RemoveMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.RemoveMyUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_VerifyMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.VerifyMyUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_VerifyMyUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.VerifyMyUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_ResendMyPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ResendMyPhoneVerificationCode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_ResendMyPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ResendMyPhoneVerificationCode(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyUserAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyUserAddress(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_AuthService_GetMyUserChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AuthService_GetMyUserChanges_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AuthService_GetMyUserChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetMyUserChanges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyUserChanges_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AuthService_GetMyUserChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetMyUserChanges(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_UpdateMyUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserAddressRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateMyUserAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_UpdateMyUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserAddressRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateMyUserAddress(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyMfas_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyMfas(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyMfas_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyMfas(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_ChangeMyPassword_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeMyPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_ChangeMyPassword_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeMyPassword(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyPasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyPasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_SearchMyExternalIDPs_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchMyExternalIDPs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_SearchMyExternalIDPs_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchMyExternalIDPs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_RemoveMyExternalIDP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPRemoveRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - val, ok = pathParams["external_user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "external_user_id") - } - - protoReq.ExternalUserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "external_user_id", err) - } - - msg, err := client.RemoveMyExternalIDP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_RemoveMyExternalIDP_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPRemoveRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - val, ok = pathParams["external_user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "external_user_id") - } - - protoReq.ExternalUserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "external_user_id", err) - } - - msg, err := server.RemoveMyExternalIDP(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_AddMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMfaOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_AddMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMfaOTP(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_VerifyMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMfaOtp - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.VerifyMfaOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_VerifyMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq VerifyMfaOtp - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.VerifyMfaOTP(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_RemoveMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemoveMfaOTP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_RemoveMfaOTP_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.RemoveMfaOTP(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_SearchMyUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchMyUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_SearchMyUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchMyUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_SearchMyProjectOrgs_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MyProjectOrgSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchMyProjectOrgs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_SearchMyProjectOrgs_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MyProjectOrgSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchMyProjectOrgs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyZitadelPermissions_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyZitadelPermissions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyZitadelPermissions_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyZitadelPermissions(ctx, &protoReq) - return msg, metadata, err - -} - -func request_AuthService_GetMyProjectPermissions_0(ctx context.Context, marshaler runtime.Marshaler, client AuthServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyProjectPermissions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_AuthService_GetMyProjectPermissions_0(ctx context.Context, marshaler runtime.Marshaler, server AuthServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyProjectPermissions(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterAuthServiceHandlerServer registers the http handlers for service AuthService to "mux". -// UnaryRPC :call AuthServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthServiceHandlerFromEndpoint instead. -func RegisterAuthServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthServiceServer) error { - - mux.Handle("GET", pattern_AuthService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_Healthz_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_Ready_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_Validate_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUserSessions_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUserProfile_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_UpdateMyUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_UpdateMyUserProfile_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_UpdateMyUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_ChangeMyUserName_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_ChangeMyUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_VerifyMyUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendMyEmailVerificationMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_ResendMyEmailVerificationMail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendMyEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_ChangeMyUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_RemoveMyUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_VerifyMyUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendMyPhoneVerificationCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_ResendMyPhoneVerificationCode_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendMyPhoneVerificationCode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUserAddress_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyUserChanges_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_UpdateMyUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_UpdateMyUserAddress_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_UpdateMyUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyMfas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyMfas_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyMfas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_ChangeMyPassword_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyPasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyExternalIDPs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_SearchMyExternalIDPs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyExternalIDPs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMyExternalIDP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_RemoveMyExternalIDP_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMyExternalIDP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_AddMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_AddMfaOTP_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_AddMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_VerifyMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_VerifyMfaOTP_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_RemoveMfaOTP_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_SearchMyUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyProjectOrgs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_SearchMyProjectOrgs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyProjectOrgs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyZitadelPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyZitadelPermissions_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyZitadelPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyProjectPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_AuthService_GetMyProjectPermissions_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyProjectPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterAuthServiceHandlerFromEndpoint is same as RegisterAuthServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAuthServiceHandler(ctx, mux, conn) -} - -// RegisterAuthServiceHandler registers the http handlers for service AuthService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAuthServiceHandlerClient(ctx, mux, NewAuthServiceClient(conn)) -} - -// RegisterAuthServiceHandlerClient registers the http handlers for service AuthService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AuthServiceClient" to call the correct interceptors. -func RegisterAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthServiceClient) error { - - mux.Handle("GET", pattern_AuthService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_Healthz_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_Ready_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_Validate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserSessions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserSessions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserSessions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserProfile_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_UpdateMyUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_UpdateMyUserProfile_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_UpdateMyUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyUserName_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyMyUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMyUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMyUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendMyEmailVerificationMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ResendMyEmailVerificationMail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendMyEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RemoveMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_VerifyMyUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMyUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMyUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_ResendMyPhoneVerificationCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ResendMyPhoneVerificationCode_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ResendMyPhoneVerificationCode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyUserChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyUserChanges_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyUserChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_UpdateMyUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_UpdateMyUserAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_UpdateMyUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyMfas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyMfas_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyMfas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_ChangeMyPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_ChangeMyPassword_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_ChangeMyPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyPasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyExternalIDPs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SearchMyExternalIDPs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyExternalIDPs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMyExternalIDP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RemoveMyExternalIDP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMyExternalIDP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_AddMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_AddMfaOTP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_AddMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AuthService_VerifyMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_VerifyMfaOTP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_VerifyMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AuthService_RemoveMfaOTP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_RemoveMfaOTP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_RemoveMfaOTP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SearchMyUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AuthService_SearchMyProjectOrgs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_SearchMyProjectOrgs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_SearchMyProjectOrgs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyZitadelPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyZitadelPermissions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyZitadelPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthService_GetMyProjectPermissions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthService_GetMyProjectPermissions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthService_GetMyProjectPermissions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AuthService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUserSessions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "sessions"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "me"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "profile"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_UpdateMyUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "profile"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_ChangeMyUserName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "username"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "email"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_ChangeMyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "email"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_VerifyMyUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "email", "_verify"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_ResendMyEmailVerificationMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "email", "_resendverification"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_ChangeMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_RemoveMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_VerifyMyUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "phone", "_verify"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_ResendMyPhoneVerificationCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "phone", "_resendverification"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "address"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyUserChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_UpdateMyUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "address"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyMfas_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "me", "mfas"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_ChangeMyPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "passwords", "_change"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"policies", "passwords", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_SearchMyExternalIDPs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "externalidps", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_RemoveMyExternalIDP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"users", "me", "externalidps", "idp_config_id", "external_user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_AddMfaOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "mfas", "otp"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_VerifyMfaOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"users", "me", "mfas", "otp", "_verify"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_RemoveMfaOTP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"users", "me", "mfas", "otp"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_SearchMyUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"usergrants", "me", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_SearchMyProjectOrgs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "projectorgs", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyZitadelPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"permissions", "zitadel", "me"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_AuthService_GetMyProjectPermissions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"permissions", "me"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_AuthService_Healthz_0 = runtime.ForwardResponseMessage - - forward_AuthService_Ready_0 = runtime.ForwardResponseMessage - - forward_AuthService_Validate_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserSessions_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUser_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserProfile_0 = runtime.ForwardResponseMessage - - forward_AuthService_UpdateMyUserProfile_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyUserName_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMyUserEmail_0 = runtime.ForwardResponseMessage - - forward_AuthService_ResendMyEmailVerificationMail_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_RemoveMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMyUserPhone_0 = runtime.ForwardResponseMessage - - forward_AuthService_ResendMyPhoneVerificationCode_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserAddress_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyUserChanges_0 = runtime.ForwardResponseMessage - - forward_AuthService_UpdateMyUserAddress_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyMfas_0 = runtime.ForwardResponseMessage - - forward_AuthService_ChangeMyPassword_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyPasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_AuthService_SearchMyExternalIDPs_0 = runtime.ForwardResponseMessage - - forward_AuthService_RemoveMyExternalIDP_0 = runtime.ForwardResponseMessage - - forward_AuthService_AddMfaOTP_0 = runtime.ForwardResponseMessage - - forward_AuthService_VerifyMfaOTP_0 = runtime.ForwardResponseMessage - - forward_AuthService_RemoveMfaOTP_0 = runtime.ForwardResponseMessage - - forward_AuthService_SearchMyUserGrant_0 = runtime.ForwardResponseMessage - - forward_AuthService_SearchMyProjectOrgs_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyZitadelPermissions_0 = runtime.ForwardResponseMessage - - forward_AuthService_GetMyProjectPermissions_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/grpc/auth/auth.pb.validate.go b/pkg/grpc/auth/auth.pb.validate.go deleted file mode 100644 index c176d882b8..0000000000 --- a/pkg/grpc/auth/auth.pb.validate.go +++ /dev/null @@ -1,3844 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: auth.proto - -package auth - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _auth_uuidPattern = regexp.MustCompile("^[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}$") - -// Validate checks the field values on UserSessionViews with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserSessionViews) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetUserSessions() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserSessionViewsValidationError{ - field: fmt.Sprintf("UserSessions[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// UserSessionViewsValidationError is the validation error returned by -// UserSessionViews.Validate if the designated constraints aren't met. -type UserSessionViewsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserSessionViewsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserSessionViewsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserSessionViewsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserSessionViewsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserSessionViewsValidationError) ErrorName() string { return "UserSessionViewsValidationError" } - -// Error satisfies the builtin error interface -func (e UserSessionViewsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserSessionViews.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserSessionViewsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserSessionViewsValidationError{} - -// Validate checks the field values on UserSessionView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserSessionView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for AgentId - - // no validation rules for AuthState - - // no validation rules for UserId - - // no validation rules for UserName - - // no validation rules for Sequence - - // no validation rules for LoginName - - // no validation rules for DisplayName - - return nil -} - -// UserSessionViewValidationError is the validation error returned by -// UserSessionView.Validate if the designated constraints aren't met. -type UserSessionViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserSessionViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserSessionViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserSessionViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserSessionViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserSessionViewValidationError) ErrorName() string { return "UserSessionViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserSessionViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserSessionView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserSessionViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserSessionViewValidationError{} - -// Validate checks the field values on UserView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for PreferredLoginName - - if v, ok := interface{}(m.GetLastLogin()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "LastLogin", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ResourceOwner - - // no validation rules for UserName - - switch m.User.(type) { - - case *UserView_Human: - - if v, ok := interface{}(m.GetHuman()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "Human", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *UserView_Machine: - - if v, ok := interface{}(m.GetMachine()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "Machine", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - return UserViewValidationError{ - field: "User", - reason: "value is required", - } - - } - - return nil -} - -// UserViewValidationError is the validation error returned by -// UserView.Validate if the designated constraints aren't met. -type UserViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserViewValidationError) ErrorName() string { return "UserViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserViewValidationError{} - -// Validate checks the field values on MachineView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MachineView) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetLastKeyAdded()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineViewValidationError{ - field: "LastKeyAdded", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Description - - return nil -} - -// MachineViewValidationError is the validation error returned by -// MachineView.Validate if the designated constraints aren't met. -type MachineViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineViewValidationError) ErrorName() string { return "MachineViewValidationError" } - -// Error satisfies the builtin error interface -func (e MachineViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineViewValidationError{} - -// Validate checks the field values on MachineKeyView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MachineKeyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Type - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetExpirationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeyViewValidationError{ - field: "ExpirationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// MachineKeyViewValidationError is the validation error returned by -// MachineKeyView.Validate if the designated constraints aren't met. -type MachineKeyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineKeyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineKeyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineKeyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineKeyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineKeyViewValidationError) ErrorName() string { return "MachineKeyViewValidationError" } - -// Error satisfies the builtin error interface -func (e MachineKeyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineKeyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineKeyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineKeyViewValidationError{} - -// Validate checks the field values on HumanView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *HumanView) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetPasswordChanged()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HumanViewValidationError{ - field: "PasswordChanged", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for DisplayName - - // no validation rules for NickName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - return nil -} - -// HumanViewValidationError is the validation error returned by -// HumanView.Validate if the designated constraints aren't met. -type HumanViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HumanViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HumanViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HumanViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HumanViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HumanViewValidationError) ErrorName() string { return "HumanViewValidationError" } - -// Error satisfies the builtin error interface -func (e HumanViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHumanView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HumanViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HumanViewValidationError{} - -// Validate checks the field values on UserProfile with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserProfile) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for NickName - - // no validation rules for DisplayName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserProfileValidationError is the validation error returned by -// UserProfile.Validate if the designated constraints aren't met. -type UserProfileValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserProfileValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserProfileValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserProfileValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserProfileValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserProfileValidationError) ErrorName() string { return "UserProfileValidationError" } - -// Error satisfies the builtin error interface -func (e UserProfileValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserProfile.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserProfileValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserProfileValidationError{} - -// Validate checks the field values on UserProfileView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserProfileView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for NickName - - // no validation rules for DisplayName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for PreferredLoginName - - return nil -} - -// UserProfileViewValidationError is the validation error returned by -// UserProfileView.Validate if the designated constraints aren't met. -type UserProfileViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserProfileViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserProfileViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserProfileViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserProfileViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserProfileViewValidationError) ErrorName() string { return "UserProfileViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserProfileViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserProfileView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserProfileViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserProfileViewValidationError{} - -// Validate checks the field values on UpdateUserProfileRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserProfileRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetFirstName()); l < 1 || l > 200 { - return UpdateUserProfileRequestValidationError{ - field: "FirstName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetLastName()); l < 1 || l > 200 { - return UpdateUserProfileRequestValidationError{ - field: "LastName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if utf8.RuneCountInString(m.GetNickName()) > 200 { - return UpdateUserProfileRequestValidationError{ - field: "NickName", - reason: "value length must be at most 200 runes", - } - } - - if l := utf8.RuneCountInString(m.GetPreferredLanguage()); l < 1 || l > 200 { - return UpdateUserProfileRequestValidationError{ - field: "PreferredLanguage", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for Gender - - return nil -} - -// UpdateUserProfileRequestValidationError is the validation error returned by -// UpdateUserProfileRequest.Validate if the designated constraints aren't met. -type UpdateUserProfileRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserProfileRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserProfileRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserProfileRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserProfileRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserProfileRequestValidationError) ErrorName() string { - return "UpdateUserProfileRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserProfileRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserProfileRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserProfileRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserProfileRequestValidationError{} - -// Validate checks the field values on ChangeUserNameRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ChangeUserNameRequest) Validate() error { - if m == nil { - return nil - } - - if !_ChangeUserNameRequest_UserName_Pattern.MatchString(m.GetUserName()) { - return ChangeUserNameRequestValidationError{ - field: "UserName", - reason: "value does not match regex pattern \"^[^[:space:]]{1,200}$\"", - } - } - - return nil -} - -// ChangeUserNameRequestValidationError is the validation error returned by -// ChangeUserNameRequest.Validate if the designated constraints aren't met. -type ChangeUserNameRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeUserNameRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeUserNameRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeUserNameRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeUserNameRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeUserNameRequestValidationError) ErrorName() string { - return "ChangeUserNameRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ChangeUserNameRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChangeUserNameRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeUserNameRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeUserNameRequestValidationError{} - -var _ChangeUserNameRequest_UserName_Pattern = regexp.MustCompile("^[^[:space:]]{1,200}$") - -// Validate checks the field values on UserEmail with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserEmail) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserEmailValidationError is the validation error returned by -// UserEmail.Validate if the designated constraints aren't met. -type UserEmailValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserEmailValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserEmailValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserEmailValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserEmailValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserEmailValidationError) ErrorName() string { return "UserEmailValidationError" } - -// Error satisfies the builtin error interface -func (e UserEmailValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserEmail.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserEmailValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserEmailValidationError{} - -// Validate checks the field values on UserEmailView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserEmailView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserEmailViewValidationError is the validation error returned by -// UserEmailView.Validate if the designated constraints aren't met. -type UserEmailViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserEmailViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserEmailViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserEmailViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserEmailViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserEmailViewValidationError) ErrorName() string { return "UserEmailViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserEmailViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserEmailView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserEmailViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserEmailViewValidationError{} - -// Validate checks the field values on VerifyMyUserEmailRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *VerifyMyUserEmailRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetCode()); l < 1 || l > 200 { - return VerifyMyUserEmailRequestValidationError{ - field: "Code", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// VerifyMyUserEmailRequestValidationError is the validation error returned by -// VerifyMyUserEmailRequest.Validate if the designated constraints aren't met. -type VerifyMyUserEmailRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e VerifyMyUserEmailRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e VerifyMyUserEmailRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e VerifyMyUserEmailRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e VerifyMyUserEmailRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e VerifyMyUserEmailRequestValidationError) ErrorName() string { - return "VerifyMyUserEmailRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e VerifyMyUserEmailRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sVerifyMyUserEmailRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = VerifyMyUserEmailRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = VerifyMyUserEmailRequestValidationError{} - -// Validate checks the field values on UpdateUserEmailRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserEmailRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetEmail()); l < 1 || l > 200 { - return UpdateUserEmailRequestValidationError{ - field: "Email", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// UpdateUserEmailRequestValidationError is the validation error returned by -// UpdateUserEmailRequest.Validate if the designated constraints aren't met. -type UpdateUserEmailRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserEmailRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserEmailRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserEmailRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserEmailRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserEmailRequestValidationError) ErrorName() string { - return "UpdateUserEmailRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserEmailRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserEmailRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserEmailRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserEmailRequestValidationError{} - -// Validate checks the field values on UserPhone with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserPhone) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserPhoneValidationError is the validation error returned by -// UserPhone.Validate if the designated constraints aren't met. -type UserPhoneValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserPhoneValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserPhoneValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserPhoneValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserPhoneValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserPhoneValidationError) ErrorName() string { return "UserPhoneValidationError" } - -// Error satisfies the builtin error interface -func (e UserPhoneValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserPhone.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserPhoneValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserPhoneValidationError{} - -// Validate checks the field values on UserPhoneView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserPhoneView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserPhoneViewValidationError is the validation error returned by -// UserPhoneView.Validate if the designated constraints aren't met. -type UserPhoneViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserPhoneViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserPhoneViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserPhoneViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserPhoneViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserPhoneViewValidationError) ErrorName() string { return "UserPhoneViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserPhoneViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserPhoneView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserPhoneViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserPhoneViewValidationError{} - -// Validate checks the field values on UpdateUserPhoneRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserPhoneRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetPhone()); l < 1 || l > 20 { - return UpdateUserPhoneRequestValidationError{ - field: "Phone", - reason: "value length must be between 1 and 20 runes, inclusive", - } - } - - return nil -} - -// UpdateUserPhoneRequestValidationError is the validation error returned by -// UpdateUserPhoneRequest.Validate if the designated constraints aren't met. -type UpdateUserPhoneRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserPhoneRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserPhoneRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserPhoneRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserPhoneRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserPhoneRequestValidationError) ErrorName() string { - return "UpdateUserPhoneRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserPhoneRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserPhoneRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserPhoneRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserPhoneRequestValidationError{} - -// Validate checks the field values on VerifyUserPhoneRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *VerifyUserPhoneRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetCode()); l < 1 || l > 200 { - return VerifyUserPhoneRequestValidationError{ - field: "Code", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// VerifyUserPhoneRequestValidationError is the validation error returned by -// VerifyUserPhoneRequest.Validate if the designated constraints aren't met. -type VerifyUserPhoneRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e VerifyUserPhoneRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e VerifyUserPhoneRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e VerifyUserPhoneRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e VerifyUserPhoneRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e VerifyUserPhoneRequestValidationError) ErrorName() string { - return "VerifyUserPhoneRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e VerifyUserPhoneRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sVerifyUserPhoneRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = VerifyUserPhoneRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = VerifyUserPhoneRequestValidationError{} - -// Validate checks the field values on UserAddress with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserAddress) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserAddressValidationError is the validation error returned by -// UserAddress.Validate if the designated constraints aren't met. -type UserAddressValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserAddressValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserAddressValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserAddressValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserAddressValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserAddressValidationError) ErrorName() string { return "UserAddressValidationError" } - -// Error satisfies the builtin error interface -func (e UserAddressValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserAddress.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserAddressValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserAddressValidationError{} - -// Validate checks the field values on UserAddressView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserAddressView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserAddressViewValidationError is the validation error returned by -// UserAddressView.Validate if the designated constraints aren't met. -type UserAddressViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserAddressViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserAddressViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserAddressViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserAddressViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserAddressViewValidationError) ErrorName() string { return "UserAddressViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserAddressViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserAddressView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserAddressViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserAddressViewValidationError{} - -// Validate checks the field values on UpdateUserAddressRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserAddressRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetCountry()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "Country", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetLocality()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "Locality", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPostalCode()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "PostalCode", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetRegion()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "Region", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetStreetAddress()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "StreetAddress", - reason: "value length must be at most 200 runes", - } - } - - return nil -} - -// UpdateUserAddressRequestValidationError is the validation error returned by -// UpdateUserAddressRequest.Validate if the designated constraints aren't met. -type UpdateUserAddressRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserAddressRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserAddressRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserAddressRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserAddressRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserAddressRequestValidationError) ErrorName() string { - return "UpdateUserAddressRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserAddressRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserAddressRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserAddressRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserAddressRequestValidationError{} - -// Validate checks the field values on PasswordChange with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *PasswordChange) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetOldPassword()); l < 1 || l > 72 { - return PasswordChangeValidationError{ - field: "OldPassword", - reason: "value length must be between 1 and 72 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetNewPassword()); l < 1 || l > 72 { - return PasswordChangeValidationError{ - field: "NewPassword", - reason: "value length must be between 1 and 72 runes, inclusive", - } - } - - return nil -} - -// PasswordChangeValidationError is the validation error returned by -// PasswordChange.Validate if the designated constraints aren't met. -type PasswordChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordChangeValidationError) ErrorName() string { return "PasswordChangeValidationError" } - -// Error satisfies the builtin error interface -func (e PasswordChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordChangeValidationError{} - -// Validate checks the field values on VerifyMfaOtp with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *VerifyMfaOtp) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetCode()) < 1 { - return VerifyMfaOtpValidationError{ - field: "Code", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// VerifyMfaOtpValidationError is the validation error returned by -// VerifyMfaOtp.Validate if the designated constraints aren't met. -type VerifyMfaOtpValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e VerifyMfaOtpValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e VerifyMfaOtpValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e VerifyMfaOtpValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e VerifyMfaOtpValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e VerifyMfaOtpValidationError) ErrorName() string { return "VerifyMfaOtpValidationError" } - -// Error satisfies the builtin error interface -func (e VerifyMfaOtpValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sVerifyMfaOtp.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = VerifyMfaOtpValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = VerifyMfaOtpValidationError{} - -// Validate checks the field values on MultiFactors with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MultiFactors) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetMfas() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MultiFactorsValidationError{ - field: fmt.Sprintf("Mfas[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// MultiFactorsValidationError is the validation error returned by -// MultiFactors.Validate if the designated constraints aren't met. -type MultiFactorsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MultiFactorsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MultiFactorsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MultiFactorsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MultiFactorsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MultiFactorsValidationError) ErrorName() string { return "MultiFactorsValidationError" } - -// Error satisfies the builtin error interface -func (e MultiFactorsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMultiFactors.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MultiFactorsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MultiFactorsValidationError{} - -// Validate checks the field values on MultiFactor with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MultiFactor) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Type - - // no validation rules for State - - return nil -} - -// MultiFactorValidationError is the validation error returned by -// MultiFactor.Validate if the designated constraints aren't met. -type MultiFactorValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MultiFactorValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MultiFactorValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MultiFactorValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MultiFactorValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MultiFactorValidationError) ErrorName() string { return "MultiFactorValidationError" } - -// Error satisfies the builtin error interface -func (e MultiFactorValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMultiFactor.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MultiFactorValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MultiFactorValidationError{} - -// Validate checks the field values on MfaOtpResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MfaOtpResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for Url - - // no validation rules for Secret - - // no validation rules for State - - return nil -} - -// MfaOtpResponseValidationError is the validation error returned by -// MfaOtpResponse.Validate if the designated constraints aren't met. -type MfaOtpResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MfaOtpResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MfaOtpResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MfaOtpResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MfaOtpResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MfaOtpResponseValidationError) ErrorName() string { return "MfaOtpResponseValidationError" } - -// Error satisfies the builtin error interface -func (e MfaOtpResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMfaOtpResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MfaOtpResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MfaOtpResponseValidationError{} - -// Validate checks the field values on UserGrantSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - if _, ok := _UserGrantSearchRequest_SortingColumn_NotInLookup[m.GetSortingColumn()]; ok { - return UserGrantSearchRequestValidationError{ - field: "SortingColumn", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Asc - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// UserGrantSearchRequestValidationError is the validation error returned by -// UserGrantSearchRequest.Validate if the designated constraints aren't met. -type UserGrantSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantSearchRequestValidationError) ErrorName() string { - return "UserGrantSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantSearchRequestValidationError{} - -var _UserGrantSearchRequest_SortingColumn_NotInLookup = map[UserGrantSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on UserGrantSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _UserGrantSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return UserGrantSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// UserGrantSearchQueryValidationError is the validation error returned by -// UserGrantSearchQuery.Validate if the designated constraints aren't met. -type UserGrantSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantSearchQueryValidationError) ErrorName() string { - return "UserGrantSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantSearchQueryValidationError{} - -var _UserGrantSearchQuery_Key_NotInLookup = map[UserGrantSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on UserGrantSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserGrantSearchResponseValidationError is the validation error returned by -// UserGrantSearchResponse.Validate if the designated constraints aren't met. -type UserGrantSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantSearchResponseValidationError) ErrorName() string { - return "UserGrantSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantSearchResponseValidationError{} - -// Validate checks the field values on UserGrantView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserGrantView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for OrgId - - // no validation rules for ProjectId - - // no validation rules for UserId - - // no validation rules for OrgName - - // no validation rules for GrantId - - return nil -} - -// UserGrantViewValidationError is the validation error returned by -// UserGrantView.Validate if the designated constraints aren't met. -type UserGrantViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantViewValidationError) ErrorName() string { return "UserGrantViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserGrantViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantViewValidationError{} - -// Validate checks the field values on MyProjectOrgSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MyProjectOrgSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for Asc - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MyProjectOrgSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// MyProjectOrgSearchRequestValidationError is the validation error returned by -// MyProjectOrgSearchRequest.Validate if the designated constraints aren't met. -type MyProjectOrgSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MyProjectOrgSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MyProjectOrgSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MyProjectOrgSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MyProjectOrgSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MyProjectOrgSearchRequestValidationError) ErrorName() string { - return "MyProjectOrgSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e MyProjectOrgSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMyProjectOrgSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MyProjectOrgSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MyProjectOrgSearchRequestValidationError{} - -// Validate checks the field values on MyProjectOrgSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MyProjectOrgSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _MyProjectOrgSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return MyProjectOrgSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// MyProjectOrgSearchQueryValidationError is the validation error returned by -// MyProjectOrgSearchQuery.Validate if the designated constraints aren't met. -type MyProjectOrgSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MyProjectOrgSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MyProjectOrgSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MyProjectOrgSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MyProjectOrgSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MyProjectOrgSearchQueryValidationError) ErrorName() string { - return "MyProjectOrgSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e MyProjectOrgSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMyProjectOrgSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MyProjectOrgSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MyProjectOrgSearchQueryValidationError{} - -var _MyProjectOrgSearchQuery_Key_NotInLookup = map[MyProjectOrgSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on MyProjectOrgSearchResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MyProjectOrgSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MyProjectOrgSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// MyProjectOrgSearchResponseValidationError is the validation error returned -// by MyProjectOrgSearchResponse.Validate if the designated constraints aren't met. -type MyProjectOrgSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MyProjectOrgSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MyProjectOrgSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MyProjectOrgSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MyProjectOrgSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MyProjectOrgSearchResponseValidationError) ErrorName() string { - return "MyProjectOrgSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e MyProjectOrgSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMyProjectOrgSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MyProjectOrgSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MyProjectOrgSearchResponseValidationError{} - -// Validate checks the field values on Org with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *Org) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Name - - return nil -} - -// OrgValidationError is the validation error returned by Org.Validate if the -// designated constraints aren't met. -type OrgValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgValidationError) ErrorName() string { return "OrgValidationError" } - -// Error satisfies the builtin error interface -func (e OrgValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrg.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgValidationError{} - -// Validate checks the field values on MyPermissions with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MyPermissions) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// MyPermissionsValidationError is the validation error returned by -// MyPermissions.Validate if the designated constraints aren't met. -type MyPermissionsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MyPermissionsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MyPermissionsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MyPermissionsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MyPermissionsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MyPermissionsValidationError) ErrorName() string { return "MyPermissionsValidationError" } - -// Error satisfies the builtin error interface -func (e MyPermissionsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMyPermissions.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MyPermissionsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MyPermissionsValidationError{} - -// Validate checks the field values on ChangesRequest with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ChangesRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Limit - - // no validation rules for SequenceOffset - - // no validation rules for Asc - - return nil -} - -// ChangesRequestValidationError is the validation error returned by -// ChangesRequest.Validate if the designated constraints aren't met. -type ChangesRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangesRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangesRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangesRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangesRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangesRequestValidationError) ErrorName() string { return "ChangesRequestValidationError" } - -// Error satisfies the builtin error interface -func (e ChangesRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChangesRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangesRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangesRequestValidationError{} - -// Validate checks the field values on Changes with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Changes) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetChanges() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangesValidationError{ - field: fmt.Sprintf("Changes[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Offset - - // no validation rules for Limit - - return nil -} - -// ChangesValidationError is the validation error returned by Changes.Validate -// if the designated constraints aren't met. -type ChangesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangesValidationError) ErrorName() string { return "ChangesValidationError" } - -// Error satisfies the builtin error interface -func (e ChangesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChanges.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangesValidationError{} - -// Validate checks the field values on Change with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Change) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetEventType()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "EventType", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for EditorId - - // no validation rules for Editor - - if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ChangeValidationError is the validation error returned by Change.Validate if -// the designated constraints aren't met. -type ChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeValidationError) ErrorName() string { return "ChangeValidationError" } - -// Error satisfies the builtin error interface -func (e ChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeValidationError{} - -// Validate checks the field values on PasswordComplexityPolicy with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordComplexityPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Description - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordComplexityPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordComplexityPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for MinLength - - // no validation rules for HasLowercase - - // no validation rules for HasUppercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - // no validation rules for Sequence - - // no validation rules for IsDefault - - return nil -} - -// PasswordComplexityPolicyValidationError is the validation error returned by -// PasswordComplexityPolicy.Validate if the designated constraints aren't met. -type PasswordComplexityPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordComplexityPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordComplexityPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordComplexityPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordComplexityPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordComplexityPolicyValidationError) ErrorName() string { - return "PasswordComplexityPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordComplexityPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordComplexityPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordComplexityPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordComplexityPolicyValidationError{} - -// Validate checks the field values on ExternalIDPResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IdpConfigId - - // no validation rules for UserId - - // no validation rules for DisplayName - - return nil -} - -// ExternalIDPResponseValidationError is the validation error returned by -// ExternalIDPResponse.Validate if the designated constraints aren't met. -type ExternalIDPResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPResponseValidationError) ErrorName() string { - return "ExternalIDPResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPResponseValidationError{} - -// Validate checks the field values on ExternalIDPRemoveRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPRemoveRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IdpConfigId - - // no validation rules for ExternalUserId - - return nil -} - -// ExternalIDPRemoveRequestValidationError is the validation error returned by -// ExternalIDPRemoveRequest.Validate if the designated constraints aren't met. -type ExternalIDPRemoveRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPRemoveRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPRemoveRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPRemoveRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPRemoveRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPRemoveRequestValidationError) ErrorName() string { - return "ExternalIDPRemoveRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPRemoveRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPRemoveRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPRemoveRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPRemoveRequestValidationError{} - -// Validate checks the field values on ExternalIDPSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - return nil -} - -// ExternalIDPSearchRequestValidationError is the validation error returned by -// ExternalIDPSearchRequest.Validate if the designated constraints aren't met. -type ExternalIDPSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPSearchRequestValidationError) ErrorName() string { - return "ExternalIDPSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPSearchRequestValidationError{} - -// Validate checks the field values on ExternalIDPSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ExternalIDPSearchResponseValidationError is the validation error returned by -// ExternalIDPSearchResponse.Validate if the designated constraints aren't met. -type ExternalIDPSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPSearchResponseValidationError) ErrorName() string { - return "ExternalIDPSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPSearchResponseValidationError{} - -// Validate checks the field values on ExternalIDPView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ExternalIDPView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for IdpConfigId - - // no validation rules for ExternalUserId - - // no validation rules for IdpName - - // no validation rules for ExternalUserDisplayName - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ExternalIDPViewValidationError is the validation error returned by -// ExternalIDPView.Validate if the designated constraints aren't met. -type ExternalIDPViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPViewValidationError) ErrorName() string { return "ExternalIDPViewValidationError" } - -// Error satisfies the builtin error interface -func (e ExternalIDPViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPViewValidationError{} diff --git a/pkg/grpc/auth/auth.swagger.json b/pkg/grpc/auth/auth.swagger.json deleted file mode 100644 index 382796a003..0000000000 --- a/pkg/grpc/auth/auth.swagger.json +++ /dev/null @@ -1,1935 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Auth API", - "version": "0.1", - "contact": { - "url": "https://github.com/caos/zitadel/pkg/auth" - } - }, - "schemes": [ - "https" - ], - "consumes": [ - "application/json", - "application/grpc" - ], - "produces": [ - "application/json", - "application/grpc" - ], - "paths": { - "/global/projectorgs/_search": { - "post": { - "operationId": "AuthService_SearchMyProjectOrgs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MyProjectOrgSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1MyProjectOrgSearchRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/healthz": { - "get": { - "summary": "Readiness", - "operationId": "AuthService_Healthz", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/permissions/me": { - "get": { - "operationId": "AuthService_GetMyProjectPermissions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MyPermissions" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/permissions/zitadel/me": { - "get": { - "summary": "Permission", - "operationId": "AuthService_GetMyZitadelPermissions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MyPermissions" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/policies/passwords/complexity": { - "get": { - "operationId": "AuthService_GetMyPasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/ready": { - "get": { - "operationId": "AuthService_Ready", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/usergrants/me/_search": { - "post": { - "operationId": "AuthService_SearchMyUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrantSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantSearchRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me": { - "get": { - "summary": "User", - "operationId": "AuthService_GetMyUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/users/me/address": { - "get": { - "operationId": "AuthService_GetMyUserAddress", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAddressView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - }, - "put": { - "operationId": "AuthService_UpdateMyUserAddress", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAddress" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserAddressRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/changes": { - "get": { - "operationId": "AuthService_GetMyUserChanges", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Changes" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "limit", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "sequence_offset", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "asc", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/email": { - "get": { - "operationId": "AuthService_GetMyUserEmail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserEmailView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - }, - "put": { - "operationId": "AuthService_ChangeMyUserEmail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserEmail" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserEmailRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/email/_resendverification": { - "post": { - "operationId": "AuthService_ResendMyEmailVerificationMail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "properties": {} - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/email/_verify": { - "post": { - "operationId": "AuthService_VerifyMyUserEmail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyMyUserEmailRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/externalidps/_search": { - "post": { - "summary": "ExternalIDP", - "operationId": "AuthService_SearchMyExternalIDPs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ExternalIDPSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ExternalIDPSearchRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/externalidps/{idp_config_id}/{external_user_id}": { - "delete": { - "operationId": "AuthService_RemoveMyExternalIDP", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "idp_config_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "external_user_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/mfas": { - "get": { - "operationId": "AuthService_GetMyMfas", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MultiFactors" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/users/me/mfas/otp": { - "delete": { - "operationId": "AuthService_RemoveMfaOTP", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - }, - "post": { - "summary": "MFA", - "operationId": "AuthService_AddMfaOTP", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MfaOtpResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "properties": {} - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/mfas/otp/_verify": { - "put": { - "operationId": "AuthService_VerifyMfaOTP", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyMfaOtp" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/passwords/_change": { - "put": { - "summary": "Password", - "operationId": "AuthService_ChangeMyPassword", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordChange" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/phone": { - "get": { - "operationId": "AuthService_GetMyUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserPhoneView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - }, - "delete": { - "operationId": "AuthService_RemoveMyUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - }, - "put": { - "operationId": "AuthService_ChangeMyUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserPhone" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserPhoneRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/phone/_resendverification": { - "post": { - "operationId": "AuthService_ResendMyPhoneVerificationCode", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "properties": {} - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/phone/_verify": { - "post": { - "operationId": "AuthService_VerifyMyUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1VerifyUserPhoneRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/profile": { - "get": { - "operationId": "AuthService_GetMyUserProfile", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserProfileView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - }, - "put": { - "operationId": "AuthService_UpdateMyUserProfile", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserProfile" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserProfileRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/users/me/sessions": { - "get": { - "summary": "Authorization", - "operationId": "AuthService_GetMyUserSessions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserSessionViews" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - }, - "/users/me/username": { - "put": { - "operationId": "AuthService_ChangeMyUserName", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ChangeUserNameRequest" - } - } - ], - "tags": [ - "AuthService" - ] - } - }, - "/validate": { - "get": { - "operationId": "AuthService_Validate", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "AuthService" - ] - } - } - }, - "definitions": { - "protobufAny": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - }, - "value": { - "type": "string", - "format": "byte", - "description": "Must be a valid serialized protocol buffer of the above specified type." - } - }, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "runtimeError": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "v1Change": { - "type": "object", - "properties": { - "change_date": { - "type": "string", - "format": "date-time" - }, - "event_type": { - "$ref": "#/definitions/v1LocalizedMessage" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "editor_id": { - "type": "string" - }, - "editor": { - "type": "string" - }, - "data": { - "type": "object" - } - } - }, - "v1ChangeUserNameRequest": { - "type": "object", - "properties": { - "user_name": { - "type": "string" - } - } - }, - "v1Changes": { - "type": "object", - "properties": { - "changes": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Change" - } - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ExternalIDPSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ExternalIDPSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ExternalIDPView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ExternalIDPView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "idp_config_id": { - "type": "string" - }, - "external_user_id": { - "type": "string" - }, - "idp_name": { - "type": "string" - }, - "external_user_display_name": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1Gender": { - "type": "string", - "enum": [ - "GENDER_UNSPECIFIED", - "GENDER_FEMALE", - "GENDER_MALE", - "GENDER_DIVERSE" - ], - "default": "GENDER_UNSPECIFIED" - }, - "v1HumanView": { - "type": "object", - "properties": { - "password_changed": { - "type": "string", - "format": "date-time" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "v1LocalizedMessage": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "localized_message": { - "type": "string" - } - } - }, - "v1MFAState": { - "type": "string", - "enum": [ - "MFASTATE_UNSPECIFIED", - "MFASTATE_NOT_READY", - "MFASTATE_READY", - "MFASTATE_REMOVED" - ], - "default": "MFASTATE_UNSPECIFIED" - }, - "v1MachineView": { - "type": "object", - "properties": { - "last_key_added": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "v1MfaOtpResponse": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "secret": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1MFAState" - } - } - }, - "v1MfaType": { - "type": "string", - "enum": [ - "MFATYPE_UNSPECIFIED", - "MFATYPE_SMS", - "MFATYPE_OTP" - ], - "default": "MFATYPE_UNSPECIFIED" - }, - "v1MultiFactor": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/v1MfaType" - }, - "state": { - "$ref": "#/definitions/v1MFAState" - } - } - }, - "v1MultiFactors": { - "type": "object", - "properties": { - "mfas": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MultiFactor" - } - } - } - }, - "v1MyPermissions": { - "type": "object", - "properties": { - "permissions": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1MyProjectOrgSearchKey": { - "type": "string", - "enum": [ - "MYPROJECTORGSEARCHKEY_UNSPECIFIED", - "MYPROJECTORGSEARCHKEY_ORG_NAME" - ], - "default": "MYPROJECTORGSEARCHKEY_UNSPECIFIED" - }, - "v1MyProjectOrgSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1MyProjectOrgSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1MyProjectOrgSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "asc": { - "type": "boolean" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MyProjectOrgSearchQuery" - } - } - } - }, - "v1MyProjectOrgSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Org" - } - } - } - }, - "v1Org": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "v1PasswordChange": { - "type": "object", - "properties": { - "old_password": { - "type": "string" - }, - "new_password": { - "type": "string" - } - } - }, - "v1PasswordComplexityPolicy": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_lowercase": { - "type": "boolean" - }, - "has_uppercase": { - "type": "boolean" - }, - "has_number": { - "type": "boolean" - }, - "has_symbol": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "is_default": { - "type": "boolean" - } - } - }, - "v1SearchMethod": { - "type": "string", - "enum": [ - "SEARCHMETHOD_EQUALS", - "SEARCHMETHOD_STARTS_WITH", - "SEARCHMETHOD_CONTAINS", - "SEARCHMETHOD_EQUALS_IGNORE_CASE", - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - "SEARCHMETHOD_CONTAINS_IGNORE_CASE" - ], - "default": "SEARCHMETHOD_EQUALS" - }, - "v1UpdateUserAddressRequest": { - "type": "object", - "properties": { - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "v1UpdateUserEmailRequest": { - "type": "object", - "properties": { - "email": { - "type": "string" - } - } - }, - "v1UpdateUserPhoneRequest": { - "type": "object", - "properties": { - "phone": { - "type": "string" - } - } - }, - "v1UpdateUserProfileRequest": { - "type": "object", - "properties": { - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - } - } - }, - "v1UserAddress": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserAddressView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserEmail": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "isEmailVerified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserEmailView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "isEmailVerified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserGrantSearchKey": { - "type": "string", - "enum": [ - "UserGrantSearchKey_UNKNOWN", - "UserGrantSearchKey_ORG_ID", - "UserGrantSearchKey_PROJECT_ID" - ], - "default": "UserGrantSearchKey_UNKNOWN" - }, - "v1UserGrantSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1UserGrantSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1UserGrantSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "sorting_column": { - "$ref": "#/definitions/v1UserGrantSearchKey" - }, - "asc": { - "type": "boolean" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserGrantSearchQuery" - } - } - } - }, - "v1UserGrantSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserGrantView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserGrantView": { - "type": "object", - "properties": { - "OrgId": { - "type": "string" - }, - "ProjectId": { - "type": "string" - }, - "UserId": { - "type": "string" - }, - "Roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "OrgName": { - "type": "string" - }, - "GrantId": { - "type": "string" - } - } - }, - "v1UserPhone": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserPhoneView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserProfile": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserProfileView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "login_names": { - "type": "array", - "items": { - "type": "string" - } - }, - "preferred_login_name": { - "type": "string" - } - } - }, - "v1UserSessionState": { - "type": "string", - "enum": [ - "USERSESSIONSTATE_UNSPECIFIED", - "USERSESSIONSTATE_ACTIVE", - "USERSESSIONSTATE_TERMINATED" - ], - "default": "USERSESSIONSTATE_UNSPECIFIED" - }, - "v1UserSessionView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "agent_id": { - "type": "string" - }, - "auth_state": { - "$ref": "#/definitions/v1UserSessionState" - }, - "user_id": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "login_name": { - "type": "string" - }, - "display_name": { - "type": "string" - } - } - }, - "v1UserSessionViews": { - "type": "object", - "properties": { - "user_sessions": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserSessionView" - } - } - } - }, - "v1UserState": { - "type": "string", - "enum": [ - "USERSTATE_UNSPECIFIED", - "USERSTATE_ACTIVE", - "USERSTATE_INACTIVE", - "USERSTATE_DELETED", - "USERSTATE_LOCKED", - "USERSTATE_SUSPEND", - "USERSTATE_INITIAL" - ], - "default": "USERSTATE_UNSPECIFIED" - }, - "v1UserView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1UserState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "login_names": { - "type": "array", - "items": { - "type": "string" - } - }, - "preferred_login_name": { - "type": "string" - }, - "last_login": { - "type": "string", - "format": "date-time" - }, - "resource_owner": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "human": { - "$ref": "#/definitions/v1HumanView" - }, - "machine": { - "$ref": "#/definitions/v1MachineView" - } - } - }, - "v1VerifyMfaOtp": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - } - }, - "v1VerifyMyUserEmailRequest": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - } - }, - "v1VerifyUserPhoneRequest": { - "type": "object", - "properties": { - "code": { - "type": "string" - } - } - } - } -} diff --git a/pkg/grpc/management/management.pb.authoptions.go b/pkg/grpc/management/management.pb.authoptions.go deleted file mode 100644 index f849b45597..0000000000 --- a/pkg/grpc/management/management.pb.authoptions.go +++ /dev/null @@ -1,721 +0,0 @@ -// Code generated by protoc-gen-authmethod. DO NOT EDIT. - -package management - -import ( - "github.com/caos/zitadel/internal/api/authz" -) - -/** - * ManagementService - */ - -const ManagementService_MethodPrefix = "caos.zitadel.management.api.v1.ManagementService" - -var ManagementService_AuthMethods = authz.MethodMapping{ - - "/caos.zitadel.management.api.v1.ManagementService/GetIam": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserByID": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserByLoginNameGlobal": authz.Option{ - Permission: "user.global.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchUsers": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateUser": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/LockUser": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UnlockUser": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeleteUser": authz.Option{ - Permission: "user.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UserChanges": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddMachineKey": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeleteMachineKey": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchMachineKeys": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetMachineKey": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeUserUserName": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserMachine": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchUserExternalIDPs": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveExternalIDP": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas": authz.Option{ - Permission: "user.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ResendInitialMail": authz.Option{ - Permission: "user.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchUserMemberships": authz.Option{ - Permission: "user.membership.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateOrg": authz.Option{ - Permission: "org.create", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/OrgChanges": authz.Option{ - Permission: "org.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg": authz.Option{ - Permission: "org.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal": authz.Option{ - Permission: "org.global.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains": authz.Option{ - Permission: "org.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GenerateMyOrgDomainValidation": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ValidateMyOrgDomain": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SetMyPrimaryOrgDomain": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain": authz.Option{ - Permission: "org.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy": authz.Option{ - Permission: "authenticated", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles": authz.Option{ - Permission: "org.member.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember": authz.Option{ - Permission: "org.member.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember": authz.Option{ - Permission: "org.member.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember": authz.Option{ - Permission: "org.member.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers": authz.Option{ - Permission: "org.member.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges": authz.Option{ - Permission: "project.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchProjects": authz.Option{ - Permission: "project.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ProjectByID": authz.Option{ - Permission: "project.read", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateProject": authz.Option{ - Permission: "project.create", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateProject": authz.Option{ - Permission: "project.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject": authz.Option{ - Permission: "project.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject": authz.Option{ - Permission: "project.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveProject": authz.Option{ - Permission: "project.delete", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects": authz.Option{ - Permission: "project.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID": authz.Option{ - Permission: "project.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles": authz.Option{ - Permission: "project.member.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers": authz.Option{ - Permission: "project.member.read", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember": authz.Option{ - Permission: "project.member.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember": authz.Option{ - Permission: "project.member.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember": authz.Option{ - Permission: "project.member.delete", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles": authz.Option{ - Permission: "project.role.read", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole": authz.Option{ - Permission: "project.role.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole": authz.Option{ - Permission: "project.role.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole": authz.Option{ - Permission: "project.role.write", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole": authz.Option{ - Permission: "project.role.delete", - CheckParam: "Id", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchApplications": authz.Option{ - Permission: "project.app.read", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID": authz.Option{ - Permission: "project.app.read", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges": authz.Option{ - Permission: "project.app.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication": authz.Option{ - Permission: "project.app.write", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication": authz.Option{ - Permission: "project.app.write", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication": authz.Option{ - Permission: "project.app.write", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication": authz.Option{ - Permission: "project.app.write", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication": authz.Option{ - Permission: "project.app.delete", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig": authz.Option{ - Permission: "project.app.write", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret": authz.Option{ - Permission: "project.app.write", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants": authz.Option{ - Permission: "project.grant.read", - CheckParam: "ProjectId", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID": authz.Option{ - Permission: "project.grant.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant": authz.Option{ - Permission: "project.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant": authz.Option{ - Permission: "project.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant": authz.Option{ - Permission: "project.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant": authz.Option{ - Permission: "project.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant": authz.Option{ - Permission: "project.grant.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles": authz.Option{ - Permission: "project.grant.member.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers": authz.Option{ - Permission: "project.grant.member.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember": authz.Option{ - Permission: "project.grant.member.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember": authz.Option{ - Permission: "project.grant.member.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember": authz.Option{ - Permission: "project.grant.member.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants": authz.Option{ - Permission: "user.grant.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID": authz.Option{ - Permission: "user.grant.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant": authz.Option{ - Permission: "user.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant": authz.Option{ - Permission: "user.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant": authz.Option{ - Permission: "user.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant": authz.Option{ - Permission: "user.grant.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant": authz.Option{ - Permission: "user.grant.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant": authz.Option{ - Permission: "user.grant.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/IdpByID": authz.Option{ - Permission: "org.idp.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateOidcIdp": authz.Option{ - Permission: "org.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateIdpConfig": authz.Option{ - Permission: "org.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/DeactivateIdpConfig": authz.Option{ - Permission: "org.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/ReactivateIdpConfig": authz.Option{ - Permission: "org.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveIdpConfig": authz.Option{ - Permission: "org.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateOidcIdpConfig": authz.Option{ - Permission: "org.idp.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/SearchIdps": authz.Option{ - Permission: "org.idp.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetDefaultLoginPolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreateLoginPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdateLoginPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveLoginPolicy": authz.Option{ - Permission: "policy.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicyIdpProviders": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddIdpProviderToLoginPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveIdpProviderFromLoginPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicySecondFactors": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddSecondFactorToLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveSecondFactorFromLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicyMultiFactors": authz.Option{ - Permission: "iam.policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/AddMultiFactorToLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemoveMultiFactorFromLoginPolicy": authz.Option{ - Permission: "iam.policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordComplexityPolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordComplexityPolicy": authz.Option{ - Permission: "policy.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordAgePolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordAgePolicy": authz.Option{ - Permission: "policy.delete", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordLockoutPolicy": authz.Option{ - Permission: "policy.read", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy": authz.Option{ - Permission: "policy.write", - CheckParam: "", - }, - - "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordLockoutPolicy": authz.Option{ - Permission: "policy.delete", - CheckParam: "", - }, -} diff --git a/pkg/grpc/management/management.pb.go b/pkg/grpc/management/management.pb.go deleted file mode 100644 index b1086f381c..0000000000 --- a/pkg/grpc/management/management.pb.go +++ /dev/null @@ -1,19924 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: management.proto - -package management - -import ( - context "context" - fmt "fmt" - _ "github.com/caos/zitadel/internal/protoc/protoc-gen-authoption/authoption" - message "github.com/caos/zitadel/pkg/grpc/message" - _ "github.com/envoyproxy/protoc-gen-validate/validate" - proto "github.com/golang/protobuf/proto" - empty "github.com/golang/protobuf/ptypes/empty" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type IamSetupStep int32 - -const ( - IamSetupStep_iam_setup_step_UNDEFINED IamSetupStep = 0 - IamSetupStep_iam_setup_step_1 IamSetupStep = 1 - IamSetupStep_iam_setup_step_2 IamSetupStep = 2 -) - -var IamSetupStep_name = map[int32]string{ - 0: "iam_setup_step_UNDEFINED", - 1: "iam_setup_step_1", - 2: "iam_setup_step_2", -} - -var IamSetupStep_value = map[string]int32{ - "iam_setup_step_UNDEFINED": 0, - "iam_setup_step_1": 1, - "iam_setup_step_2": 2, -} - -func (x IamSetupStep) String() string { - return proto.EnumName(IamSetupStep_name, int32(x)) -} - -func (IamSetupStep) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{0} -} - -type UserState int32 - -const ( - UserState_USERSTATE_UNSPECIFIED UserState = 0 - UserState_USERSTATE_ACTIVE UserState = 1 - UserState_USERSTATE_INACTIVE UserState = 2 - UserState_USERSTATE_DELETED UserState = 3 - UserState_USERSTATE_LOCKED UserState = 4 - UserState_USERSTATE_SUSPEND UserState = 5 - UserState_USERSTATE_INITIAL UserState = 6 -) - -var UserState_name = map[int32]string{ - 0: "USERSTATE_UNSPECIFIED", - 1: "USERSTATE_ACTIVE", - 2: "USERSTATE_INACTIVE", - 3: "USERSTATE_DELETED", - 4: "USERSTATE_LOCKED", - 5: "USERSTATE_SUSPEND", - 6: "USERSTATE_INITIAL", -} - -var UserState_value = map[string]int32{ - "USERSTATE_UNSPECIFIED": 0, - "USERSTATE_ACTIVE": 1, - "USERSTATE_INACTIVE": 2, - "USERSTATE_DELETED": 3, - "USERSTATE_LOCKED": 4, - "USERSTATE_SUSPEND": 5, - "USERSTATE_INITIAL": 6, -} - -func (x UserState) String() string { - return proto.EnumName(UserState_name, int32(x)) -} - -func (UserState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{1} -} - -type Gender int32 - -const ( - Gender_GENDER_UNSPECIFIED Gender = 0 - Gender_GENDER_FEMALE Gender = 1 - Gender_GENDER_MALE Gender = 2 - Gender_GENDER_DIVERSE Gender = 3 -) - -var Gender_name = map[int32]string{ - 0: "GENDER_UNSPECIFIED", - 1: "GENDER_FEMALE", - 2: "GENDER_MALE", - 3: "GENDER_DIVERSE", -} - -var Gender_value = map[string]int32{ - "GENDER_UNSPECIFIED": 0, - "GENDER_FEMALE": 1, - "GENDER_MALE": 2, - "GENDER_DIVERSE": 3, -} - -func (x Gender) String() string { - return proto.EnumName(Gender_name, int32(x)) -} - -func (Gender) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{2} -} - -type MachineKeyType int32 - -const ( - MachineKeyType_MACHINEKEY_UNSPECIFIED MachineKeyType = 0 - MachineKeyType_MACHINEKEY_JSON MachineKeyType = 1 -) - -var MachineKeyType_name = map[int32]string{ - 0: "MACHINEKEY_UNSPECIFIED", - 1: "MACHINEKEY_JSON", -} - -var MachineKeyType_value = map[string]int32{ - "MACHINEKEY_UNSPECIFIED": 0, - "MACHINEKEY_JSON": 1, -} - -func (x MachineKeyType) String() string { - return proto.EnumName(MachineKeyType_name, int32(x)) -} - -func (MachineKeyType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{3} -} - -type UserSearchKey int32 - -const ( - UserSearchKey_USERSEARCHKEY_UNSPECIFIED UserSearchKey = 0 - UserSearchKey_USERSEARCHKEY_USER_NAME UserSearchKey = 1 - UserSearchKey_USERSEARCHKEY_FIRST_NAME UserSearchKey = 2 - UserSearchKey_USERSEARCHKEY_LAST_NAME UserSearchKey = 3 - UserSearchKey_USERSEARCHKEY_NICK_NAME UserSearchKey = 4 - UserSearchKey_USERSEARCHKEY_DISPLAY_NAME UserSearchKey = 5 - UserSearchKey_USERSEARCHKEY_EMAIL UserSearchKey = 6 - UserSearchKey_USERSEARCHKEY_STATE UserSearchKey = 7 - UserSearchKey_USERSEARCHKEY_TYPE UserSearchKey = 8 -) - -var UserSearchKey_name = map[int32]string{ - 0: "USERSEARCHKEY_UNSPECIFIED", - 1: "USERSEARCHKEY_USER_NAME", - 2: "USERSEARCHKEY_FIRST_NAME", - 3: "USERSEARCHKEY_LAST_NAME", - 4: "USERSEARCHKEY_NICK_NAME", - 5: "USERSEARCHKEY_DISPLAY_NAME", - 6: "USERSEARCHKEY_EMAIL", - 7: "USERSEARCHKEY_STATE", - 8: "USERSEARCHKEY_TYPE", -} - -var UserSearchKey_value = map[string]int32{ - "USERSEARCHKEY_UNSPECIFIED": 0, - "USERSEARCHKEY_USER_NAME": 1, - "USERSEARCHKEY_FIRST_NAME": 2, - "USERSEARCHKEY_LAST_NAME": 3, - "USERSEARCHKEY_NICK_NAME": 4, - "USERSEARCHKEY_DISPLAY_NAME": 5, - "USERSEARCHKEY_EMAIL": 6, - "USERSEARCHKEY_STATE": 7, - "USERSEARCHKEY_TYPE": 8, -} - -func (x UserSearchKey) String() string { - return proto.EnumName(UserSearchKey_name, int32(x)) -} - -func (UserSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{4} -} - -type SearchMethod int32 - -const ( - SearchMethod_SEARCHMETHOD_EQUALS SearchMethod = 0 - SearchMethod_SEARCHMETHOD_STARTS_WITH SearchMethod = 1 - SearchMethod_SEARCHMETHOD_CONTAINS SearchMethod = 2 - SearchMethod_SEARCHMETHOD_EQUALS_IGNORE_CASE SearchMethod = 3 - SearchMethod_SEARCHMETHOD_STARTS_WITH_IGNORE_CASE SearchMethod = 4 - SearchMethod_SEARCHMETHOD_CONTAINS_IGNORE_CASE SearchMethod = 5 - SearchMethod_SEARCHMETHOD_NOT_EQUALS SearchMethod = 6 - SearchMethod_SEARCHMETHOD_GREATER_THAN SearchMethod = 7 - SearchMethod_SEARCHMETHOD_LESS_THAN SearchMethod = 8 - SearchMethod_SEARCHMETHOD_IS_ONE_OF SearchMethod = 9 - SearchMethod_SEARCHMETHOD_LIST_CONTAINS SearchMethod = 10 -) - -var SearchMethod_name = map[int32]string{ - 0: "SEARCHMETHOD_EQUALS", - 1: "SEARCHMETHOD_STARTS_WITH", - 2: "SEARCHMETHOD_CONTAINS", - 3: "SEARCHMETHOD_EQUALS_IGNORE_CASE", - 4: "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - 5: "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - 6: "SEARCHMETHOD_NOT_EQUALS", - 7: "SEARCHMETHOD_GREATER_THAN", - 8: "SEARCHMETHOD_LESS_THAN", - 9: "SEARCHMETHOD_IS_ONE_OF", - 10: "SEARCHMETHOD_LIST_CONTAINS", -} - -var SearchMethod_value = map[string]int32{ - "SEARCHMETHOD_EQUALS": 0, - "SEARCHMETHOD_STARTS_WITH": 1, - "SEARCHMETHOD_CONTAINS": 2, - "SEARCHMETHOD_EQUALS_IGNORE_CASE": 3, - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE": 4, - "SEARCHMETHOD_CONTAINS_IGNORE_CASE": 5, - "SEARCHMETHOD_NOT_EQUALS": 6, - "SEARCHMETHOD_GREATER_THAN": 7, - "SEARCHMETHOD_LESS_THAN": 8, - "SEARCHMETHOD_IS_ONE_OF": 9, - "SEARCHMETHOD_LIST_CONTAINS": 10, -} - -func (x SearchMethod) String() string { - return proto.EnumName(SearchMethod_name, int32(x)) -} - -func (SearchMethod) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{5} -} - -type MfaType int32 - -const ( - MfaType_MFATYPE_UNSPECIFIED MfaType = 0 - MfaType_MFATYPE_SMS MfaType = 1 - MfaType_MFATYPE_OTP MfaType = 2 -) - -var MfaType_name = map[int32]string{ - 0: "MFATYPE_UNSPECIFIED", - 1: "MFATYPE_SMS", - 2: "MFATYPE_OTP", -} - -var MfaType_value = map[string]int32{ - "MFATYPE_UNSPECIFIED": 0, - "MFATYPE_SMS": 1, - "MFATYPE_OTP": 2, -} - -func (x MfaType) String() string { - return proto.EnumName(MfaType_name, int32(x)) -} - -func (MfaType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{6} -} - -type MFAState int32 - -const ( - MFAState_MFASTATE_UNSPECIFIED MFAState = 0 - MFAState_MFASTATE_NOT_READY MFAState = 1 - MFAState_MFASTATE_READY MFAState = 2 - MFAState_MFASTATE_REMOVED MFAState = 3 -) - -var MFAState_name = map[int32]string{ - 0: "MFASTATE_UNSPECIFIED", - 1: "MFASTATE_NOT_READY", - 2: "MFASTATE_READY", - 3: "MFASTATE_REMOVED", -} - -var MFAState_value = map[string]int32{ - "MFASTATE_UNSPECIFIED": 0, - "MFASTATE_NOT_READY": 1, - "MFASTATE_READY": 2, - "MFASTATE_REMOVED": 3, -} - -func (x MFAState) String() string { - return proto.EnumName(MFAState_name, int32(x)) -} - -func (MFAState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{7} -} - -type NotificationType int32 - -const ( - NotificationType_NOTIFICATIONTYPE_EMAIL NotificationType = 0 - NotificationType_NOTIFICATIONTYPE_SMS NotificationType = 1 -) - -var NotificationType_name = map[int32]string{ - 0: "NOTIFICATIONTYPE_EMAIL", - 1: "NOTIFICATIONTYPE_SMS", -} - -var NotificationType_value = map[string]int32{ - "NOTIFICATIONTYPE_EMAIL": 0, - "NOTIFICATIONTYPE_SMS": 1, -} - -func (x NotificationType) String() string { - return proto.EnumName(NotificationType_name, int32(x)) -} - -func (NotificationType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{8} -} - -type PolicyState int32 - -const ( - PolicyState_POLICYSTATE_UNSPECIFIED PolicyState = 0 - PolicyState_POLICYSTATE_ACTIVE PolicyState = 1 - PolicyState_POLICYSTATE_INACTIVE PolicyState = 2 - PolicyState_POLICYSTATE_DELETED PolicyState = 3 -) - -var PolicyState_name = map[int32]string{ - 0: "POLICYSTATE_UNSPECIFIED", - 1: "POLICYSTATE_ACTIVE", - 2: "POLICYSTATE_INACTIVE", - 3: "POLICYSTATE_DELETED", -} - -var PolicyState_value = map[string]int32{ - "POLICYSTATE_UNSPECIFIED": 0, - "POLICYSTATE_ACTIVE": 1, - "POLICYSTATE_INACTIVE": 2, - "POLICYSTATE_DELETED": 3, -} - -func (x PolicyState) String() string { - return proto.EnumName(PolicyState_name, int32(x)) -} - -func (PolicyState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{9} -} - -type OrgState int32 - -const ( - OrgState_ORGSTATE_UNSPECIFIED OrgState = 0 - OrgState_ORGSTATE_ACTIVE OrgState = 1 - OrgState_ORGSTATE_INACTIVE OrgState = 2 -) - -var OrgState_name = map[int32]string{ - 0: "ORGSTATE_UNSPECIFIED", - 1: "ORGSTATE_ACTIVE", - 2: "ORGSTATE_INACTIVE", -} - -var OrgState_value = map[string]int32{ - "ORGSTATE_UNSPECIFIED": 0, - "ORGSTATE_ACTIVE": 1, - "ORGSTATE_INACTIVE": 2, -} - -func (x OrgState) String() string { - return proto.EnumName(OrgState_name, int32(x)) -} - -func (OrgState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{10} -} - -type OrgDomainValidationType int32 - -const ( - OrgDomainValidationType_ORGDOMAINVALIDATIONTYPE_UNSPECIFIED OrgDomainValidationType = 0 - OrgDomainValidationType_ORGDOMAINVALIDATIONTYPE_HTTP OrgDomainValidationType = 1 - OrgDomainValidationType_ORGDOMAINVALIDATIONTYPE_DNS OrgDomainValidationType = 2 -) - -var OrgDomainValidationType_name = map[int32]string{ - 0: "ORGDOMAINVALIDATIONTYPE_UNSPECIFIED", - 1: "ORGDOMAINVALIDATIONTYPE_HTTP", - 2: "ORGDOMAINVALIDATIONTYPE_DNS", -} - -var OrgDomainValidationType_value = map[string]int32{ - "ORGDOMAINVALIDATIONTYPE_UNSPECIFIED": 0, - "ORGDOMAINVALIDATIONTYPE_HTTP": 1, - "ORGDOMAINVALIDATIONTYPE_DNS": 2, -} - -func (x OrgDomainValidationType) String() string { - return proto.EnumName(OrgDomainValidationType_name, int32(x)) -} - -func (OrgDomainValidationType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{11} -} - -type OrgDomainSearchKey int32 - -const ( - OrgDomainSearchKey_ORGDOMAINSEARCHKEY_UNSPECIFIED OrgDomainSearchKey = 0 - OrgDomainSearchKey_ORGDOMAINSEARCHKEY_DOMAIN OrgDomainSearchKey = 1 -) - -var OrgDomainSearchKey_name = map[int32]string{ - 0: "ORGDOMAINSEARCHKEY_UNSPECIFIED", - 1: "ORGDOMAINSEARCHKEY_DOMAIN", -} - -var OrgDomainSearchKey_value = map[string]int32{ - "ORGDOMAINSEARCHKEY_UNSPECIFIED": 0, - "ORGDOMAINSEARCHKEY_DOMAIN": 1, -} - -func (x OrgDomainSearchKey) String() string { - return proto.EnumName(OrgDomainSearchKey_name, int32(x)) -} - -func (OrgDomainSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{12} -} - -type OrgMemberSearchKey int32 - -const ( - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_UNSPECIFIED OrgMemberSearchKey = 0 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_FIRST_NAME OrgMemberSearchKey = 1 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_LAST_NAME OrgMemberSearchKey = 2 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_EMAIL OrgMemberSearchKey = 3 - OrgMemberSearchKey_ORGMEMBERSEARCHKEY_USER_ID OrgMemberSearchKey = 4 -) - -var OrgMemberSearchKey_name = map[int32]string{ - 0: "ORGMEMBERSEARCHKEY_UNSPECIFIED", - 1: "ORGMEMBERSEARCHKEY_FIRST_NAME", - 2: "ORGMEMBERSEARCHKEY_LAST_NAME", - 3: "ORGMEMBERSEARCHKEY_EMAIL", - 4: "ORGMEMBERSEARCHKEY_USER_ID", -} - -var OrgMemberSearchKey_value = map[string]int32{ - "ORGMEMBERSEARCHKEY_UNSPECIFIED": 0, - "ORGMEMBERSEARCHKEY_FIRST_NAME": 1, - "ORGMEMBERSEARCHKEY_LAST_NAME": 2, - "ORGMEMBERSEARCHKEY_EMAIL": 3, - "ORGMEMBERSEARCHKEY_USER_ID": 4, -} - -func (x OrgMemberSearchKey) String() string { - return proto.EnumName(OrgMemberSearchKey_name, int32(x)) -} - -func (OrgMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{13} -} - -type ProjectSearchKey int32 - -const ( - ProjectSearchKey_PROJECTSEARCHKEY_UNSPECIFIED ProjectSearchKey = 0 - ProjectSearchKey_PROJECTSEARCHKEY_PROJECT_NAME ProjectSearchKey = 1 -) - -var ProjectSearchKey_name = map[int32]string{ - 0: "PROJECTSEARCHKEY_UNSPECIFIED", - 1: "PROJECTSEARCHKEY_PROJECT_NAME", -} - -var ProjectSearchKey_value = map[string]int32{ - "PROJECTSEARCHKEY_UNSPECIFIED": 0, - "PROJECTSEARCHKEY_PROJECT_NAME": 1, -} - -func (x ProjectSearchKey) String() string { - return proto.EnumName(ProjectSearchKey_name, int32(x)) -} - -func (ProjectSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{14} -} - -type ProjectState int32 - -const ( - ProjectState_PROJECTSTATE_UNSPECIFIED ProjectState = 0 - ProjectState_PROJECTSTATE_ACTIVE ProjectState = 1 - ProjectState_PROJECTSTATE_INACTIVE ProjectState = 2 -) - -var ProjectState_name = map[int32]string{ - 0: "PROJECTSTATE_UNSPECIFIED", - 1: "PROJECTSTATE_ACTIVE", - 2: "PROJECTSTATE_INACTIVE", -} - -var ProjectState_value = map[string]int32{ - "PROJECTSTATE_UNSPECIFIED": 0, - "PROJECTSTATE_ACTIVE": 1, - "PROJECTSTATE_INACTIVE": 2, -} - -func (x ProjectState) String() string { - return proto.EnumName(ProjectState_name, int32(x)) -} - -func (ProjectState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{15} -} - -type ProjectRoleSearchKey int32 - -const ( - ProjectRoleSearchKey_PROJECTROLESEARCHKEY_UNSPECIFIED ProjectRoleSearchKey = 0 - ProjectRoleSearchKey_PROJECTROLESEARCHKEY_KEY ProjectRoleSearchKey = 1 - ProjectRoleSearchKey_PROJECTROLESEARCHKEY_DISPLAY_NAME ProjectRoleSearchKey = 2 -) - -var ProjectRoleSearchKey_name = map[int32]string{ - 0: "PROJECTROLESEARCHKEY_UNSPECIFIED", - 1: "PROJECTROLESEARCHKEY_KEY", - 2: "PROJECTROLESEARCHKEY_DISPLAY_NAME", -} - -var ProjectRoleSearchKey_value = map[string]int32{ - "PROJECTROLESEARCHKEY_UNSPECIFIED": 0, - "PROJECTROLESEARCHKEY_KEY": 1, - "PROJECTROLESEARCHKEY_DISPLAY_NAME": 2, -} - -func (x ProjectRoleSearchKey) String() string { - return proto.EnumName(ProjectRoleSearchKey_name, int32(x)) -} - -func (ProjectRoleSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{16} -} - -type ProjectMemberSearchKey int32 - -const ( - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_UNSPECIFIED ProjectMemberSearchKey = 0 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_FIRST_NAME ProjectMemberSearchKey = 1 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_LAST_NAME ProjectMemberSearchKey = 2 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_EMAIL ProjectMemberSearchKey = 3 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_ID ProjectMemberSearchKey = 4 - ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_USER_NAME ProjectMemberSearchKey = 5 -) - -var ProjectMemberSearchKey_name = map[int32]string{ - 0: "PROJECTMEMBERSEARCHKEY_UNSPECIFIED", - 1: "PROJECTMEMBERSEARCHKEY_FIRST_NAME", - 2: "PROJECTMEMBERSEARCHKEY_LAST_NAME", - 3: "PROJECTMEMBERSEARCHKEY_EMAIL", - 4: "PROJECTMEMBERSEARCHKEY_USER_ID", - 5: "PROJECTMEMBERSEARCHKEY_USER_NAME", -} - -var ProjectMemberSearchKey_value = map[string]int32{ - "PROJECTMEMBERSEARCHKEY_UNSPECIFIED": 0, - "PROJECTMEMBERSEARCHKEY_FIRST_NAME": 1, - "PROJECTMEMBERSEARCHKEY_LAST_NAME": 2, - "PROJECTMEMBERSEARCHKEY_EMAIL": 3, - "PROJECTMEMBERSEARCHKEY_USER_ID": 4, - "PROJECTMEMBERSEARCHKEY_USER_NAME": 5, -} - -func (x ProjectMemberSearchKey) String() string { - return proto.EnumName(ProjectMemberSearchKey_name, int32(x)) -} - -func (ProjectMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{17} -} - -type AppState int32 - -const ( - AppState_APPSTATE_UNSPECIFIED AppState = 0 - AppState_APPSTATE_ACTIVE AppState = 1 - AppState_APPSTATE_INACTIVE AppState = 2 -) - -var AppState_name = map[int32]string{ - 0: "APPSTATE_UNSPECIFIED", - 1: "APPSTATE_ACTIVE", - 2: "APPSTATE_INACTIVE", -} - -var AppState_value = map[string]int32{ - "APPSTATE_UNSPECIFIED": 0, - "APPSTATE_ACTIVE": 1, - "APPSTATE_INACTIVE": 2, -} - -func (x AppState) String() string { - return proto.EnumName(AppState_name, int32(x)) -} - -func (AppState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{18} -} - -type OIDCVersion int32 - -const ( - OIDCVersion_OIDCV1_0 OIDCVersion = 0 -) - -var OIDCVersion_name = map[int32]string{ - 0: "OIDCV1_0", -} - -var OIDCVersion_value = map[string]int32{ - "OIDCV1_0": 0, -} - -func (x OIDCVersion) String() string { - return proto.EnumName(OIDCVersion_name, int32(x)) -} - -func (OIDCVersion) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{19} -} - -type OIDCTokenType int32 - -const ( - OIDCTokenType_OIDCTokenType_Bearer OIDCTokenType = 0 - OIDCTokenType_OIDCTokenType_JWT OIDCTokenType = 1 -) - -var OIDCTokenType_name = map[int32]string{ - 0: "OIDCTokenType_Bearer", - 1: "OIDCTokenType_JWT", -} - -var OIDCTokenType_value = map[string]int32{ - "OIDCTokenType_Bearer": 0, - "OIDCTokenType_JWT": 1, -} - -func (x OIDCTokenType) String() string { - return proto.EnumName(OIDCTokenType_name, int32(x)) -} - -func (OIDCTokenType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{20} -} - -type OIDCResponseType int32 - -const ( - OIDCResponseType_OIDCRESPONSETYPE_CODE OIDCResponseType = 0 - OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN OIDCResponseType = 1 - OIDCResponseType_OIDCRESPONSETYPE_ID_TOKEN_TOKEN OIDCResponseType = 2 -) - -var OIDCResponseType_name = map[int32]string{ - 0: "OIDCRESPONSETYPE_CODE", - 1: "OIDCRESPONSETYPE_ID_TOKEN", - 2: "OIDCRESPONSETYPE_ID_TOKEN_TOKEN", -} - -var OIDCResponseType_value = map[string]int32{ - "OIDCRESPONSETYPE_CODE": 0, - "OIDCRESPONSETYPE_ID_TOKEN": 1, - "OIDCRESPONSETYPE_ID_TOKEN_TOKEN": 2, -} - -func (x OIDCResponseType) String() string { - return proto.EnumName(OIDCResponseType_name, int32(x)) -} - -func (OIDCResponseType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{21} -} - -type OIDCGrantType int32 - -const ( - OIDCGrantType_OIDCGRANTTYPE_AUTHORIZATION_CODE OIDCGrantType = 0 - OIDCGrantType_OIDCGRANTTYPE_IMPLICIT OIDCGrantType = 1 - OIDCGrantType_OIDCGRANTTYPE_REFRESH_TOKEN OIDCGrantType = 2 -) - -var OIDCGrantType_name = map[int32]string{ - 0: "OIDCGRANTTYPE_AUTHORIZATION_CODE", - 1: "OIDCGRANTTYPE_IMPLICIT", - 2: "OIDCGRANTTYPE_REFRESH_TOKEN", -} - -var OIDCGrantType_value = map[string]int32{ - "OIDCGRANTTYPE_AUTHORIZATION_CODE": 0, - "OIDCGRANTTYPE_IMPLICIT": 1, - "OIDCGRANTTYPE_REFRESH_TOKEN": 2, -} - -func (x OIDCGrantType) String() string { - return proto.EnumName(OIDCGrantType_name, int32(x)) -} - -func (OIDCGrantType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{22} -} - -type OIDCApplicationType int32 - -const ( - OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB OIDCApplicationType = 0 - OIDCApplicationType_OIDCAPPLICATIONTYPE_USER_AGENT OIDCApplicationType = 1 - OIDCApplicationType_OIDCAPPLICATIONTYPE_NATIVE OIDCApplicationType = 2 -) - -var OIDCApplicationType_name = map[int32]string{ - 0: "OIDCAPPLICATIONTYPE_WEB", - 1: "OIDCAPPLICATIONTYPE_USER_AGENT", - 2: "OIDCAPPLICATIONTYPE_NATIVE", -} - -var OIDCApplicationType_value = map[string]int32{ - "OIDCAPPLICATIONTYPE_WEB": 0, - "OIDCAPPLICATIONTYPE_USER_AGENT": 1, - "OIDCAPPLICATIONTYPE_NATIVE": 2, -} - -func (x OIDCApplicationType) String() string { - return proto.EnumName(OIDCApplicationType_name, int32(x)) -} - -func (OIDCApplicationType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{23} -} - -type OIDCAuthMethodType int32 - -const ( - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC OIDCAuthMethodType = 0 - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_POST OIDCAuthMethodType = 1 - OIDCAuthMethodType_OIDCAUTHMETHODTYPE_NONE OIDCAuthMethodType = 2 -) - -var OIDCAuthMethodType_name = map[int32]string{ - 0: "OIDCAUTHMETHODTYPE_BASIC", - 1: "OIDCAUTHMETHODTYPE_POST", - 2: "OIDCAUTHMETHODTYPE_NONE", -} - -var OIDCAuthMethodType_value = map[string]int32{ - "OIDCAUTHMETHODTYPE_BASIC": 0, - "OIDCAUTHMETHODTYPE_POST": 1, - "OIDCAUTHMETHODTYPE_NONE": 2, -} - -func (x OIDCAuthMethodType) String() string { - return proto.EnumName(OIDCAuthMethodType_name, int32(x)) -} - -func (OIDCAuthMethodType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{24} -} - -type ApplicationSearchKey int32 - -const ( - ApplicationSearchKey_APPLICATIONSERACHKEY_UNSPECIFIED ApplicationSearchKey = 0 - ApplicationSearchKey_APPLICATIONSEARCHKEY_APP_NAME ApplicationSearchKey = 1 -) - -var ApplicationSearchKey_name = map[int32]string{ - 0: "APPLICATIONSERACHKEY_UNSPECIFIED", - 1: "APPLICATIONSEARCHKEY_APP_NAME", -} - -var ApplicationSearchKey_value = map[string]int32{ - "APPLICATIONSERACHKEY_UNSPECIFIED": 0, - "APPLICATIONSEARCHKEY_APP_NAME": 1, -} - -func (x ApplicationSearchKey) String() string { - return proto.EnumName(ApplicationSearchKey_name, int32(x)) -} - -func (ApplicationSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{25} -} - -type ProjectGrantState int32 - -const ( - ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED ProjectGrantState = 0 - ProjectGrantState_PROJECTGRANTSTATE_ACTIVE ProjectGrantState = 1 - ProjectGrantState_PROJECTGRANTSTATE_INACTIVE ProjectGrantState = 2 -) - -var ProjectGrantState_name = map[int32]string{ - 0: "PROJECTGRANTSTATE_UNSPECIFIED", - 1: "PROJECTGRANTSTATE_ACTIVE", - 2: "PROJECTGRANTSTATE_INACTIVE", -} - -var ProjectGrantState_value = map[string]int32{ - "PROJECTGRANTSTATE_UNSPECIFIED": 0, - "PROJECTGRANTSTATE_ACTIVE": 1, - "PROJECTGRANTSTATE_INACTIVE": 2, -} - -func (x ProjectGrantState) String() string { - return proto.EnumName(ProjectGrantState_name, int32(x)) -} - -func (ProjectGrantState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{26} -} - -type ProjectGrantSearchKey int32 - -const ( - ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_UNSPECIFIED ProjectGrantSearchKey = 0 - ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_PROJECT_NAME ProjectGrantSearchKey = 1 - ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_ROLE_KEY ProjectGrantSearchKey = 2 -) - -var ProjectGrantSearchKey_name = map[int32]string{ - 0: "PROJECTGRANTSEARCHKEY_UNSPECIFIED", - 1: "PROJECTGRANTSEARCHKEY_PROJECT_NAME", - 2: "PROJECTGRANTSEARCHKEY_ROLE_KEY", -} - -var ProjectGrantSearchKey_value = map[string]int32{ - "PROJECTGRANTSEARCHKEY_UNSPECIFIED": 0, - "PROJECTGRANTSEARCHKEY_PROJECT_NAME": 1, - "PROJECTGRANTSEARCHKEY_ROLE_KEY": 2, -} - -func (x ProjectGrantSearchKey) String() string { - return proto.EnumName(ProjectGrantSearchKey_name, int32(x)) -} - -func (ProjectGrantSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{27} -} - -type ProjectGrantMemberSearchKey int32 - -const ( - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED ProjectGrantMemberSearchKey = 0 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME ProjectGrantMemberSearchKey = 1 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME ProjectGrantMemberSearchKey = 2 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_EMAIL ProjectGrantMemberSearchKey = 3 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_ID ProjectGrantMemberSearchKey = 4 - ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_USER_NAME ProjectGrantMemberSearchKey = 5 -) - -var ProjectGrantMemberSearchKey_name = map[int32]string{ - 0: "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED", - 1: "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME", - 2: "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME", - 3: "PROJECTGRANTMEMBERSEARCHKEY_EMAIL", - 4: "PROJECTGRANTMEMBERSEARCHKEY_USER_ID", - 5: "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME", -} - -var ProjectGrantMemberSearchKey_value = map[string]int32{ - "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED": 0, - "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME": 1, - "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME": 2, - "PROJECTGRANTMEMBERSEARCHKEY_EMAIL": 3, - "PROJECTGRANTMEMBERSEARCHKEY_USER_ID": 4, - "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME": 5, -} - -func (x ProjectGrantMemberSearchKey) String() string { - return proto.EnumName(ProjectGrantMemberSearchKey_name, int32(x)) -} - -func (ProjectGrantMemberSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{28} -} - -type UserGrantState int32 - -const ( - UserGrantState_USERGRANTSTATE_UNSPECIFIED UserGrantState = 0 - UserGrantState_USERGRANTSTATE_ACTIVE UserGrantState = 1 - UserGrantState_USERGRANTSTATE_INACTIVE UserGrantState = 2 -) - -var UserGrantState_name = map[int32]string{ - 0: "USERGRANTSTATE_UNSPECIFIED", - 1: "USERGRANTSTATE_ACTIVE", - 2: "USERGRANTSTATE_INACTIVE", -} - -var UserGrantState_value = map[string]int32{ - "USERGRANTSTATE_UNSPECIFIED": 0, - "USERGRANTSTATE_ACTIVE": 1, - "USERGRANTSTATE_INACTIVE": 2, -} - -func (x UserGrantState) String() string { - return proto.EnumName(UserGrantState_name, int32(x)) -} - -func (UserGrantState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{29} -} - -type UserGrantSearchKey int32 - -const ( - UserGrantSearchKey_USERGRANTSEARCHKEY_UNSPECIFIED UserGrantSearchKey = 0 - UserGrantSearchKey_USERGRANTSEARCHKEY_PROJECT_ID UserGrantSearchKey = 1 - UserGrantSearchKey_USERGRANTSEARCHKEY_USER_ID UserGrantSearchKey = 2 - UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_ID UserGrantSearchKey = 3 - UserGrantSearchKey_USERGRANTSEARCHKEY_ROLE_KEY UserGrantSearchKey = 4 - UserGrantSearchKey_USERGRANTSEARCHKEY_GRANT_ID UserGrantSearchKey = 5 - UserGrantSearchKey_USERGRANTSEARCHKEY_USER_NAME UserGrantSearchKey = 6 - UserGrantSearchKey_USERGRANTSEARCHKEY_FIRST_NAME UserGrantSearchKey = 7 - UserGrantSearchKey_USERGRANTSEARCHKEY_LAST_NAME UserGrantSearchKey = 8 - UserGrantSearchKey_USERGRANTSEARCHKEY_EMAIL UserGrantSearchKey = 9 - UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_NAME UserGrantSearchKey = 10 - UserGrantSearchKey_USERGRANTSEARCHKEY_ORG_DOMAIN UserGrantSearchKey = 11 - UserGrantSearchKey_USERGRANTSEARCHKEY_PROJECT_NAME UserGrantSearchKey = 12 - UserGrantSearchKey_USERGRANTSEARCHKEY_DISPLAY_NAME UserGrantSearchKey = 13 -) - -var UserGrantSearchKey_name = map[int32]string{ - 0: "USERGRANTSEARCHKEY_UNSPECIFIED", - 1: "USERGRANTSEARCHKEY_PROJECT_ID", - 2: "USERGRANTSEARCHKEY_USER_ID", - 3: "USERGRANTSEARCHKEY_ORG_ID", - 4: "USERGRANTSEARCHKEY_ROLE_KEY", - 5: "USERGRANTSEARCHKEY_GRANT_ID", - 6: "USERGRANTSEARCHKEY_USER_NAME", - 7: "USERGRANTSEARCHKEY_FIRST_NAME", - 8: "USERGRANTSEARCHKEY_LAST_NAME", - 9: "USERGRANTSEARCHKEY_EMAIL", - 10: "USERGRANTSEARCHKEY_ORG_NAME", - 11: "USERGRANTSEARCHKEY_ORG_DOMAIN", - 12: "USERGRANTSEARCHKEY_PROJECT_NAME", - 13: "USERGRANTSEARCHKEY_DISPLAY_NAME", -} - -var UserGrantSearchKey_value = map[string]int32{ - "USERGRANTSEARCHKEY_UNSPECIFIED": 0, - "USERGRANTSEARCHKEY_PROJECT_ID": 1, - "USERGRANTSEARCHKEY_USER_ID": 2, - "USERGRANTSEARCHKEY_ORG_ID": 3, - "USERGRANTSEARCHKEY_ROLE_KEY": 4, - "USERGRANTSEARCHKEY_GRANT_ID": 5, - "USERGRANTSEARCHKEY_USER_NAME": 6, - "USERGRANTSEARCHKEY_FIRST_NAME": 7, - "USERGRANTSEARCHKEY_LAST_NAME": 8, - "USERGRANTSEARCHKEY_EMAIL": 9, - "USERGRANTSEARCHKEY_ORG_NAME": 10, - "USERGRANTSEARCHKEY_ORG_DOMAIN": 11, - "USERGRANTSEARCHKEY_PROJECT_NAME": 12, - "USERGRANTSEARCHKEY_DISPLAY_NAME": 13, -} - -func (x UserGrantSearchKey) String() string { - return proto.EnumName(UserGrantSearchKey_name, int32(x)) -} - -func (UserGrantSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{30} -} - -type UserMembershipSearchKey int32 - -const ( - UserMembershipSearchKey_USERMEMBERSHIPSEARCHKEY_UNSPECIFIED UserMembershipSearchKey = 0 - UserMembershipSearchKey_USERMEMBERSHIPSEARCHKEY_TYPE UserMembershipSearchKey = 1 - UserMembershipSearchKey_USERMEMBERSHIPSEARCHKEY_OBJECT_ID UserMembershipSearchKey = 2 -) - -var UserMembershipSearchKey_name = map[int32]string{ - 0: "USERMEMBERSHIPSEARCHKEY_UNSPECIFIED", - 1: "USERMEMBERSHIPSEARCHKEY_TYPE", - 2: "USERMEMBERSHIPSEARCHKEY_OBJECT_ID", -} - -var UserMembershipSearchKey_value = map[string]int32{ - "USERMEMBERSHIPSEARCHKEY_UNSPECIFIED": 0, - "USERMEMBERSHIPSEARCHKEY_TYPE": 1, - "USERMEMBERSHIPSEARCHKEY_OBJECT_ID": 2, -} - -func (x UserMembershipSearchKey) String() string { - return proto.EnumName(UserMembershipSearchKey_name, int32(x)) -} - -func (UserMembershipSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{31} -} - -type MemberType int32 - -const ( - MemberType_MEMBERTYPE_UNSPECIFIED MemberType = 0 - MemberType_MEMBERTYPE_ORGANISATION MemberType = 1 - MemberType_MEMBERTYPE_PROJECT MemberType = 2 - MemberType_MEMBERTYPE_PROJECT_GRANT MemberType = 3 -) - -var MemberType_name = map[int32]string{ - 0: "MEMBERTYPE_UNSPECIFIED", - 1: "MEMBERTYPE_ORGANISATION", - 2: "MEMBERTYPE_PROJECT", - 3: "MEMBERTYPE_PROJECT_GRANT", -} - -var MemberType_value = map[string]int32{ - "MEMBERTYPE_UNSPECIFIED": 0, - "MEMBERTYPE_ORGANISATION": 1, - "MEMBERTYPE_PROJECT": 2, - "MEMBERTYPE_PROJECT_GRANT": 3, -} - -func (x MemberType) String() string { - return proto.EnumName(MemberType_name, int32(x)) -} - -func (MemberType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{32} -} - -type IdpStylingType int32 - -const ( - IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED IdpStylingType = 0 - IdpStylingType_IDPSTYLINGTYPE_GOOGLE IdpStylingType = 1 -) - -var IdpStylingType_name = map[int32]string{ - 0: "IDPSTYLINGTYPE_UNSPECIFIED", - 1: "IDPSTYLINGTYPE_GOOGLE", -} - -var IdpStylingType_value = map[string]int32{ - "IDPSTYLINGTYPE_UNSPECIFIED": 0, - "IDPSTYLINGTYPE_GOOGLE": 1, -} - -func (x IdpStylingType) String() string { - return proto.EnumName(IdpStylingType_name, int32(x)) -} - -func (IdpStylingType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{33} -} - -type IdpState int32 - -const ( - IdpState_IDPCONFIGSTATE_UNSPECIFIED IdpState = 0 - IdpState_IDPCONFIGSTATE_ACTIVE IdpState = 1 - IdpState_IDPCONFIGSTATE_INACTIVE IdpState = 2 -) - -var IdpState_name = map[int32]string{ - 0: "IDPCONFIGSTATE_UNSPECIFIED", - 1: "IDPCONFIGSTATE_ACTIVE", - 2: "IDPCONFIGSTATE_INACTIVE", -} - -var IdpState_value = map[string]int32{ - "IDPCONFIGSTATE_UNSPECIFIED": 0, - "IDPCONFIGSTATE_ACTIVE": 1, - "IDPCONFIGSTATE_INACTIVE": 2, -} - -func (x IdpState) String() string { - return proto.EnumName(IdpState_name, int32(x)) -} - -func (IdpState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{34} -} - -type OIDCMappingField int32 - -const ( - OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED OIDCMappingField = 0 - OIDCMappingField_OIDCMAPPINGFIELD_PREFERRED_USERNAME OIDCMappingField = 1 - OIDCMappingField_OIDCMAPPINGFIELD_EMAIL OIDCMappingField = 2 -) - -var OIDCMappingField_name = map[int32]string{ - 0: "OIDCMAPPINGFIELD_UNSPECIFIED", - 1: "OIDCMAPPINGFIELD_PREFERRED_USERNAME", - 2: "OIDCMAPPINGFIELD_EMAIL", -} - -var OIDCMappingField_value = map[string]int32{ - "OIDCMAPPINGFIELD_UNSPECIFIED": 0, - "OIDCMAPPINGFIELD_PREFERRED_USERNAME": 1, - "OIDCMAPPINGFIELD_EMAIL": 2, -} - -func (x OIDCMappingField) String() string { - return proto.EnumName(OIDCMappingField_name, int32(x)) -} - -func (OIDCMappingField) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{35} -} - -type IdpSearchKey int32 - -const ( - IdpSearchKey_IDPSEARCHKEY_UNSPECIFIED IdpSearchKey = 0 - IdpSearchKey_IDPSEARCHKEY_IDP_CONFIG_ID IdpSearchKey = 1 - IdpSearchKey_IDPSEARCHKEY_NAME IdpSearchKey = 2 - IdpSearchKey_IDPSEARCHKEY_PROVIDER_TYPE IdpSearchKey = 3 -) - -var IdpSearchKey_name = map[int32]string{ - 0: "IDPSEARCHKEY_UNSPECIFIED", - 1: "IDPSEARCHKEY_IDP_CONFIG_ID", - 2: "IDPSEARCHKEY_NAME", - 3: "IDPSEARCHKEY_PROVIDER_TYPE", -} - -var IdpSearchKey_value = map[string]int32{ - "IDPSEARCHKEY_UNSPECIFIED": 0, - "IDPSEARCHKEY_IDP_CONFIG_ID": 1, - "IDPSEARCHKEY_NAME": 2, - "IDPSEARCHKEY_PROVIDER_TYPE": 3, -} - -func (x IdpSearchKey) String() string { - return proto.EnumName(IdpSearchKey_name, int32(x)) -} - -func (IdpSearchKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{36} -} - -type IdpType int32 - -const ( - IdpType_IDPTYPE_UNSPECIFIED IdpType = 0 - IdpType_IDPTYPE_OIDC IdpType = 1 - IdpType_IDPTYPE_SAML IdpType = 2 -) - -var IdpType_name = map[int32]string{ - 0: "IDPTYPE_UNSPECIFIED", - 1: "IDPTYPE_OIDC", - 2: "IDPTYPE_SAML", -} - -var IdpType_value = map[string]int32{ - "IDPTYPE_UNSPECIFIED": 0, - "IDPTYPE_OIDC": 1, - "IDPTYPE_SAML": 2, -} - -func (x IdpType) String() string { - return proto.EnumName(IdpType_name, int32(x)) -} - -func (IdpType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{37} -} - -type IdpProviderType int32 - -const ( - IdpProviderType_IDPPROVIDERTYPE_UNSPECIFIED IdpProviderType = 0 - IdpProviderType_IDPPROVIDERTYPE_SYSTEM IdpProviderType = 1 - IdpProviderType_IDPPROVIDERTYPE_ORG IdpProviderType = 2 -) - -var IdpProviderType_name = map[int32]string{ - 0: "IDPPROVIDERTYPE_UNSPECIFIED", - 1: "IDPPROVIDERTYPE_SYSTEM", - 2: "IDPPROVIDERTYPE_ORG", -} - -var IdpProviderType_value = map[string]int32{ - "IDPPROVIDERTYPE_UNSPECIFIED": 0, - "IDPPROVIDERTYPE_SYSTEM": 1, - "IDPPROVIDERTYPE_ORG": 2, -} - -func (x IdpProviderType) String() string { - return proto.EnumName(IdpProviderType_name, int32(x)) -} - -func (IdpProviderType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{38} -} - -//ProjectType is deprecated, remove as soon as console is ready -type ProjectType int32 - -const ( - ProjectType_PROJECTTYPE_UNSPECIFIED ProjectType = 0 - ProjectType_PROJECTTYPE_OWNED ProjectType = 1 - ProjectType_PROJECTTYPE_GRANTED ProjectType = 2 -) - -var ProjectType_name = map[int32]string{ - 0: "PROJECTTYPE_UNSPECIFIED", - 1: "PROJECTTYPE_OWNED", - 2: "PROJECTTYPE_GRANTED", -} - -var ProjectType_value = map[string]int32{ - "PROJECTTYPE_UNSPECIFIED": 0, - "PROJECTTYPE_OWNED": 1, - "PROJECTTYPE_GRANTED": 2, -} - -func (x ProjectType) String() string { - return proto.EnumName(ProjectType_name, int32(x)) -} - -func (ProjectType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{39} -} - -type SecondFactorType int32 - -const ( - SecondFactorType_SECONDFACTORTYPE_UNSPECIFIED SecondFactorType = 0 - SecondFactorType_SECONDFACTORTYPE_OTP SecondFactorType = 1 - SecondFactorType_SECONDFACTORTYPE_U2F SecondFactorType = 2 -) - -var SecondFactorType_name = map[int32]string{ - 0: "SECONDFACTORTYPE_UNSPECIFIED", - 1: "SECONDFACTORTYPE_OTP", - 2: "SECONDFACTORTYPE_U2F", -} - -var SecondFactorType_value = map[string]int32{ - "SECONDFACTORTYPE_UNSPECIFIED": 0, - "SECONDFACTORTYPE_OTP": 1, - "SECONDFACTORTYPE_U2F": 2, -} - -func (x SecondFactorType) String() string { - return proto.EnumName(SecondFactorType_name, int32(x)) -} - -func (SecondFactorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{40} -} - -type MultiFactorType int32 - -const ( - MultiFactorType_MULTIFACTORTYPE_UNSPECIFIED MultiFactorType = 0 - MultiFactorType_MULTIFACTORTYPE_U2F_WITH_PIN MultiFactorType = 1 -) - -var MultiFactorType_name = map[int32]string{ - 0: "MULTIFACTORTYPE_UNSPECIFIED", - 1: "MULTIFACTORTYPE_U2F_WITH_PIN", -} - -var MultiFactorType_value = map[string]int32{ - "MULTIFACTORTYPE_UNSPECIFIED": 0, - "MULTIFACTORTYPE_U2F_WITH_PIN": 1, -} - -func (x MultiFactorType) String() string { - return proto.EnumName(MultiFactorType_name, int32(x)) -} - -func (MultiFactorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{41} -} - -type ZitadelDocs struct { - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - DiscoveryEndpoint string `protobuf:"bytes,2,opt,name=discovery_endpoint,json=discoveryEndpoint,proto3" json:"discovery_endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ZitadelDocs) Reset() { *m = ZitadelDocs{} } -func (m *ZitadelDocs) String() string { return proto.CompactTextString(m) } -func (*ZitadelDocs) ProtoMessage() {} -func (*ZitadelDocs) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{0} -} - -func (m *ZitadelDocs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ZitadelDocs.Unmarshal(m, b) -} -func (m *ZitadelDocs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ZitadelDocs.Marshal(b, m, deterministic) -} -func (m *ZitadelDocs) XXX_Merge(src proto.Message) { - xxx_messageInfo_ZitadelDocs.Merge(m, src) -} -func (m *ZitadelDocs) XXX_Size() int { - return xxx_messageInfo_ZitadelDocs.Size(m) -} -func (m *ZitadelDocs) XXX_DiscardUnknown() { - xxx_messageInfo_ZitadelDocs.DiscardUnknown(m) -} - -var xxx_messageInfo_ZitadelDocs proto.InternalMessageInfo - -func (m *ZitadelDocs) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *ZitadelDocs) GetDiscoveryEndpoint() string { - if m != nil { - return m.DiscoveryEndpoint - } - return "" -} - -type Iam struct { - GlobalOrgId string `protobuf:"bytes,1,opt,name=global_org_id,json=globalOrgId,proto3" json:"global_org_id,omitempty"` - IamProjectId string `protobuf:"bytes,2,opt,name=iam_project_id,json=iamProjectId,proto3" json:"iam_project_id,omitempty"` - SetUpDone IamSetupStep `protobuf:"varint,3,opt,name=set_up_done,json=setUpDone,proto3,enum=caos.zitadel.management.api.v1.IamSetupStep" json:"set_up_done,omitempty"` - SetUpStarted IamSetupStep `protobuf:"varint,4,opt,name=set_up_started,json=setUpStarted,proto3,enum=caos.zitadel.management.api.v1.IamSetupStep" json:"set_up_started,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Iam) Reset() { *m = Iam{} } -func (m *Iam) String() string { return proto.CompactTextString(m) } -func (*Iam) ProtoMessage() {} -func (*Iam) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{1} -} - -func (m *Iam) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Iam.Unmarshal(m, b) -} -func (m *Iam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Iam.Marshal(b, m, deterministic) -} -func (m *Iam) XXX_Merge(src proto.Message) { - xxx_messageInfo_Iam.Merge(m, src) -} -func (m *Iam) XXX_Size() int { - return xxx_messageInfo_Iam.Size(m) -} -func (m *Iam) XXX_DiscardUnknown() { - xxx_messageInfo_Iam.DiscardUnknown(m) -} - -var xxx_messageInfo_Iam proto.InternalMessageInfo - -func (m *Iam) GetGlobalOrgId() string { - if m != nil { - return m.GlobalOrgId - } - return "" -} - -func (m *Iam) GetIamProjectId() string { - if m != nil { - return m.IamProjectId - } - return "" -} - -func (m *Iam) GetSetUpDone() IamSetupStep { - if m != nil { - return m.SetUpDone - } - return IamSetupStep_iam_setup_step_UNDEFINED -} - -func (m *Iam) GetSetUpStarted() IamSetupStep { - if m != nil { - return m.SetUpStarted - } - return IamSetupStep_iam_setup_step_UNDEFINED -} - -type ChangeRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - SecId string `protobuf:"bytes,2,opt,name=sec_id,json=secId,proto3" json:"sec_id,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - SequenceOffset uint64 `protobuf:"varint,4,opt,name=sequence_offset,json=sequenceOffset,proto3" json:"sequence_offset,omitempty"` - Asc bool `protobuf:"varint,5,opt,name=asc,proto3" json:"asc,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangeRequest) Reset() { *m = ChangeRequest{} } -func (m *ChangeRequest) String() string { return proto.CompactTextString(m) } -func (*ChangeRequest) ProtoMessage() {} -func (*ChangeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{2} -} - -func (m *ChangeRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChangeRequest.Unmarshal(m, b) -} -func (m *ChangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChangeRequest.Marshal(b, m, deterministic) -} -func (m *ChangeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeRequest.Merge(m, src) -} -func (m *ChangeRequest) XXX_Size() int { - return xxx_messageInfo_ChangeRequest.Size(m) -} -func (m *ChangeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ChangeRequest proto.InternalMessageInfo - -func (m *ChangeRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ChangeRequest) GetSecId() string { - if m != nil { - return m.SecId - } - return "" -} - -func (m *ChangeRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ChangeRequest) GetSequenceOffset() uint64 { - if m != nil { - return m.SequenceOffset - } - return 0 -} - -func (m *ChangeRequest) GetAsc() bool { - if m != nil { - return m.Asc - } - return false -} - -type Changes struct { - Changes []*Change `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Changes) Reset() { *m = Changes{} } -func (m *Changes) String() string { return proto.CompactTextString(m) } -func (*Changes) ProtoMessage() {} -func (*Changes) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{3} -} - -func (m *Changes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Changes.Unmarshal(m, b) -} -func (m *Changes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Changes.Marshal(b, m, deterministic) -} -func (m *Changes) XXX_Merge(src proto.Message) { - xxx_messageInfo_Changes.Merge(m, src) -} -func (m *Changes) XXX_Size() int { - return xxx_messageInfo_Changes.Size(m) -} -func (m *Changes) XXX_DiscardUnknown() { - xxx_messageInfo_Changes.DiscardUnknown(m) -} - -var xxx_messageInfo_Changes proto.InternalMessageInfo - -func (m *Changes) GetChanges() []*Change { - if m != nil { - return m.Changes - } - return nil -} - -func (m *Changes) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *Changes) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -type Change struct { - ChangeDate *timestamp.Timestamp `protobuf:"bytes,1,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - EventType *message.LocalizedMessage `protobuf:"bytes,2,opt,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - EditorId string `protobuf:"bytes,4,opt,name=editor_id,json=editorId,proto3" json:"editor_id,omitempty"` - Editor string `protobuf:"bytes,5,opt,name=editor,proto3" json:"editor,omitempty"` - Data *_struct.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Change) Reset() { *m = Change{} } -func (m *Change) String() string { return proto.CompactTextString(m) } -func (*Change) ProtoMessage() {} -func (*Change) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{4} -} - -func (m *Change) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Change.Unmarshal(m, b) -} -func (m *Change) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Change.Marshal(b, m, deterministic) -} -func (m *Change) XXX_Merge(src proto.Message) { - xxx_messageInfo_Change.Merge(m, src) -} -func (m *Change) XXX_Size() int { - return xxx_messageInfo_Change.Size(m) -} -func (m *Change) XXX_DiscardUnknown() { - xxx_messageInfo_Change.DiscardUnknown(m) -} - -var xxx_messageInfo_Change proto.InternalMessageInfo - -func (m *Change) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *Change) GetEventType() *message.LocalizedMessage { - if m != nil { - return m.EventType - } - return nil -} - -func (m *Change) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *Change) GetEditorId() string { - if m != nil { - return m.EditorId - } - return "" -} - -func (m *Change) GetEditor() string { - if m != nil { - return m.Editor - } - return "" -} - -func (m *Change) GetData() *_struct.Struct { - if m != nil { - return m.Data - } - return nil -} - -type ApplicationID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationID) Reset() { *m = ApplicationID{} } -func (m *ApplicationID) String() string { return proto.CompactTextString(m) } -func (*ApplicationID) ProtoMessage() {} -func (*ApplicationID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{5} -} - -func (m *ApplicationID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationID.Unmarshal(m, b) -} -func (m *ApplicationID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationID.Marshal(b, m, deterministic) -} -func (m *ApplicationID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationID.Merge(m, src) -} -func (m *ApplicationID) XXX_Size() int { - return xxx_messageInfo_ApplicationID.Size(m) -} -func (m *ApplicationID) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationID.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationID proto.InternalMessageInfo - -func (m *ApplicationID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ApplicationID) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -type ProjectID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectID) Reset() { *m = ProjectID{} } -func (m *ProjectID) String() string { return proto.CompactTextString(m) } -func (*ProjectID) ProtoMessage() {} -func (*ProjectID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{6} -} - -func (m *ProjectID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectID.Unmarshal(m, b) -} -func (m *ProjectID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectID.Marshal(b, m, deterministic) -} -func (m *ProjectID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectID.Merge(m, src) -} -func (m *ProjectID) XXX_Size() int { - return xxx_messageInfo_ProjectID.Size(m) -} -func (m *ProjectID) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectID.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectID proto.InternalMessageInfo - -func (m *ProjectID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type UserID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserID) Reset() { *m = UserID{} } -func (m *UserID) String() string { return proto.CompactTextString(m) } -func (*UserID) ProtoMessage() {} -func (*UserID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{7} -} - -func (m *UserID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserID.Unmarshal(m, b) -} -func (m *UserID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserID.Marshal(b, m, deterministic) -} -func (m *UserID) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserID.Merge(m, src) -} -func (m *UserID) XXX_Size() int { - return xxx_messageInfo_UserID.Size(m) -} -func (m *UserID) XXX_DiscardUnknown() { - xxx_messageInfo_UserID.DiscardUnknown(m) -} - -var xxx_messageInfo_UserID proto.InternalMessageInfo - -func (m *UserID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type LoginName struct { - LoginName string `protobuf:"bytes,1,opt,name=login_name,json=loginName,proto3" json:"login_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoginName) Reset() { *m = LoginName{} } -func (m *LoginName) String() string { return proto.CompactTextString(m) } -func (*LoginName) ProtoMessage() {} -func (*LoginName) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{8} -} - -func (m *LoginName) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoginName.Unmarshal(m, b) -} -func (m *LoginName) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoginName.Marshal(b, m, deterministic) -} -func (m *LoginName) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoginName.Merge(m, src) -} -func (m *LoginName) XXX_Size() int { - return xxx_messageInfo_LoginName.Size(m) -} -func (m *LoginName) XXX_DiscardUnknown() { - xxx_messageInfo_LoginName.DiscardUnknown(m) -} - -var xxx_messageInfo_LoginName proto.InternalMessageInfo - -func (m *LoginName) GetLoginName() string { - if m != nil { - return m.LoginName - } - return "" -} - -type UniqueUserRequest struct { - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UniqueUserRequest) Reset() { *m = UniqueUserRequest{} } -func (m *UniqueUserRequest) String() string { return proto.CompactTextString(m) } -func (*UniqueUserRequest) ProtoMessage() {} -func (*UniqueUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{9} -} - -func (m *UniqueUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UniqueUserRequest.Unmarshal(m, b) -} -func (m *UniqueUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UniqueUserRequest.Marshal(b, m, deterministic) -} -func (m *UniqueUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UniqueUserRequest.Merge(m, src) -} -func (m *UniqueUserRequest) XXX_Size() int { - return xxx_messageInfo_UniqueUserRequest.Size(m) -} -func (m *UniqueUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UniqueUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UniqueUserRequest proto.InternalMessageInfo - -func (m *UniqueUserRequest) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *UniqueUserRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -type UniqueUserResponse struct { - IsUnique bool `protobuf:"varint,1,opt,name=is_unique,json=isUnique,proto3" json:"is_unique,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UniqueUserResponse) Reset() { *m = UniqueUserResponse{} } -func (m *UniqueUserResponse) String() string { return proto.CompactTextString(m) } -func (*UniqueUserResponse) ProtoMessage() {} -func (*UniqueUserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{10} -} - -func (m *UniqueUserResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UniqueUserResponse.Unmarshal(m, b) -} -func (m *UniqueUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UniqueUserResponse.Marshal(b, m, deterministic) -} -func (m *UniqueUserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UniqueUserResponse.Merge(m, src) -} -func (m *UniqueUserResponse) XXX_Size() int { - return xxx_messageInfo_UniqueUserResponse.Size(m) -} -func (m *UniqueUserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UniqueUserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UniqueUserResponse proto.InternalMessageInfo - -func (m *UniqueUserResponse) GetIsUnique() bool { - if m != nil { - return m.IsUnique - } - return false -} - -type CreateUserRequest struct { - UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - // Types that are valid to be assigned to User: - // *CreateUserRequest_Human - // *CreateUserRequest_Machine - User isCreateUserRequest_User `protobuf_oneof:"user"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateUserRequest) Reset() { *m = CreateUserRequest{} } -func (m *CreateUserRequest) String() string { return proto.CompactTextString(m) } -func (*CreateUserRequest) ProtoMessage() {} -func (*CreateUserRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{11} -} - -func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateUserRequest.Unmarshal(m, b) -} -func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateUserRequest.Marshal(b, m, deterministic) -} -func (m *CreateUserRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateUserRequest.Merge(m, src) -} -func (m *CreateUserRequest) XXX_Size() int { - return xxx_messageInfo_CreateUserRequest.Size(m) -} -func (m *CreateUserRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateUserRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateUserRequest proto.InternalMessageInfo - -func (m *CreateUserRequest) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type isCreateUserRequest_User interface { - isCreateUserRequest_User() -} - -type CreateUserRequest_Human struct { - Human *CreateHumanRequest `protobuf:"bytes,2,opt,name=human,proto3,oneof"` -} - -type CreateUserRequest_Machine struct { - Machine *CreateMachineRequest `protobuf:"bytes,3,opt,name=machine,proto3,oneof"` -} - -func (*CreateUserRequest_Human) isCreateUserRequest_User() {} - -func (*CreateUserRequest_Machine) isCreateUserRequest_User() {} - -func (m *CreateUserRequest) GetUser() isCreateUserRequest_User { - if m != nil { - return m.User - } - return nil -} - -func (m *CreateUserRequest) GetHuman() *CreateHumanRequest { - if x, ok := m.GetUser().(*CreateUserRequest_Human); ok { - return x.Human - } - return nil -} - -func (m *CreateUserRequest) GetMachine() *CreateMachineRequest { - if x, ok := m.GetUser().(*CreateUserRequest_Machine); ok { - return x.Machine - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CreateUserRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CreateUserRequest_Human)(nil), - (*CreateUserRequest_Machine)(nil), - } -} - -type CreateHumanRequest struct { - FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,3,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,4,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,5,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,7,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,9,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,10,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,11,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,12,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,13,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,14,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Password string `protobuf:"bytes,15,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateHumanRequest) Reset() { *m = CreateHumanRequest{} } -func (m *CreateHumanRequest) String() string { return proto.CompactTextString(m) } -func (*CreateHumanRequest) ProtoMessage() {} -func (*CreateHumanRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{12} -} - -func (m *CreateHumanRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateHumanRequest.Unmarshal(m, b) -} -func (m *CreateHumanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateHumanRequest.Marshal(b, m, deterministic) -} -func (m *CreateHumanRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateHumanRequest.Merge(m, src) -} -func (m *CreateHumanRequest) XXX_Size() int { - return xxx_messageInfo_CreateHumanRequest.Size(m) -} -func (m *CreateHumanRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateHumanRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateHumanRequest proto.InternalMessageInfo - -func (m *CreateHumanRequest) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *CreateHumanRequest) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *CreateHumanRequest) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *CreateHumanRequest) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *CreateHumanRequest) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *CreateHumanRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *CreateHumanRequest) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified - } - return false -} - -func (m *CreateHumanRequest) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -func (m *CreateHumanRequest) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified - } - return false -} - -func (m *CreateHumanRequest) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *CreateHumanRequest) GetLocality() string { - if m != nil { - return m.Locality - } - return "" -} - -func (m *CreateHumanRequest) GetPostalCode() string { - if m != nil { - return m.PostalCode - } - return "" -} - -func (m *CreateHumanRequest) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *CreateHumanRequest) GetStreetAddress() string { - if m != nil { - return m.StreetAddress - } - return "" -} - -func (m *CreateHumanRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type CreateMachineRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateMachineRequest) Reset() { *m = CreateMachineRequest{} } -func (m *CreateMachineRequest) String() string { return proto.CompactTextString(m) } -func (*CreateMachineRequest) ProtoMessage() {} -func (*CreateMachineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{13} -} - -func (m *CreateMachineRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateMachineRequest.Unmarshal(m, b) -} -func (m *CreateMachineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateMachineRequest.Marshal(b, m, deterministic) -} -func (m *CreateMachineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateMachineRequest.Merge(m, src) -} -func (m *CreateMachineRequest) XXX_Size() int { - return xxx_messageInfo_CreateMachineRequest.Size(m) -} -func (m *CreateMachineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateMachineRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateMachineRequest proto.InternalMessageInfo - -func (m *CreateMachineRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *CreateMachineRequest) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type UserResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - // Types that are valid to be assigned to User: - // *UserResponse_Human - // *UserResponse_Machine - User isUserResponse_User `protobuf_oneof:"user"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserResponse) Reset() { *m = UserResponse{} } -func (m *UserResponse) String() string { return proto.CompactTextString(m) } -func (*UserResponse) ProtoMessage() {} -func (*UserResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{14} -} - -func (m *UserResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserResponse.Unmarshal(m, b) -} -func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserResponse.Marshal(b, m, deterministic) -} -func (m *UserResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserResponse.Merge(m, src) -} -func (m *UserResponse) XXX_Size() int { - return xxx_messageInfo_UserResponse.Size(m) -} -func (m *UserResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UserResponse proto.InternalMessageInfo - -func (m *UserResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserResponse) GetState() UserState { - if m != nil { - return m.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (m *UserResponse) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserResponse) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *UserResponse) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserResponse) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type isUserResponse_User interface { - isUserResponse_User() -} - -type UserResponse_Human struct { - Human *HumanResponse `protobuf:"bytes,7,opt,name=human,proto3,oneof"` -} - -type UserResponse_Machine struct { - Machine *MachineResponse `protobuf:"bytes,8,opt,name=machine,proto3,oneof"` -} - -func (*UserResponse_Human) isUserResponse_User() {} - -func (*UserResponse_Machine) isUserResponse_User() {} - -func (m *UserResponse) GetUser() isUserResponse_User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserResponse) GetHuman() *HumanResponse { - if x, ok := m.GetUser().(*UserResponse_Human); ok { - return x.Human - } - return nil -} - -func (m *UserResponse) GetMachine() *MachineResponse { - if x, ok := m.GetUser().(*UserResponse_Machine); ok { - return x.Machine - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserResponse_Human)(nil), - (*UserResponse_Machine)(nil), - } -} - -type UserView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State UserState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - LoginNames []string `protobuf:"bytes,6,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` - PreferredLoginName string `protobuf:"bytes,7,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` - LastLogin *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` - ResourceOwner string `protobuf:"bytes,9,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - UserName string `protobuf:"bytes,10,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - // Types that are valid to be assigned to User: - // *UserView_Human - // *UserView_Machine - User isUserView_User `protobuf_oneof:"user"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserView) Reset() { *m = UserView{} } -func (m *UserView) String() string { return proto.CompactTextString(m) } -func (*UserView) ProtoMessage() {} -func (*UserView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{15} -} - -func (m *UserView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserView.Unmarshal(m, b) -} -func (m *UserView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserView.Marshal(b, m, deterministic) -} -func (m *UserView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserView.Merge(m, src) -} -func (m *UserView) XXX_Size() int { - return xxx_messageInfo_UserView.Size(m) -} -func (m *UserView) XXX_DiscardUnknown() { - xxx_messageInfo_UserView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserView proto.InternalMessageInfo - -func (m *UserView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserView) GetState() UserState { - if m != nil { - return m.State - } - return UserState_USERSTATE_UNSPECIFIED -} - -func (m *UserView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *UserView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserView) GetLoginNames() []string { - if m != nil { - return m.LoginNames - } - return nil -} - -func (m *UserView) GetPreferredLoginName() string { - if m != nil { - return m.PreferredLoginName - } - return "" -} - -func (m *UserView) GetLastLogin() *timestamp.Timestamp { - if m != nil { - return m.LastLogin - } - return nil -} - -func (m *UserView) GetResourceOwner() string { - if m != nil { - return m.ResourceOwner - } - return "" -} - -func (m *UserView) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type isUserView_User interface { - isUserView_User() -} - -type UserView_Human struct { - Human *HumanView `protobuf:"bytes,11,opt,name=human,proto3,oneof"` -} - -type UserView_Machine struct { - Machine *MachineView `protobuf:"bytes,12,opt,name=machine,proto3,oneof"` -} - -func (*UserView_Human) isUserView_User() {} - -func (*UserView_Machine) isUserView_User() {} - -func (m *UserView) GetUser() isUserView_User { - if m != nil { - return m.User - } - return nil -} - -func (m *UserView) GetHuman() *HumanView { - if x, ok := m.GetUser().(*UserView_Human); ok { - return x.Human - } - return nil -} - -func (m *UserView) GetMachine() *MachineView { - if x, ok := m.GetUser().(*UserView_Machine); ok { - return x.Machine - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UserView) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UserView_Human)(nil), - (*UserView_Machine)(nil), - } -} - -type HumanResponse struct { - FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,8,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,9,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,10,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,12,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,13,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,14,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,15,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HumanResponse) Reset() { *m = HumanResponse{} } -func (m *HumanResponse) String() string { return proto.CompactTextString(m) } -func (*HumanResponse) ProtoMessage() {} -func (*HumanResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{16} -} - -func (m *HumanResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HumanResponse.Unmarshal(m, b) -} -func (m *HumanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HumanResponse.Marshal(b, m, deterministic) -} -func (m *HumanResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HumanResponse.Merge(m, src) -} -func (m *HumanResponse) XXX_Size() int { - return xxx_messageInfo_HumanResponse.Size(m) -} -func (m *HumanResponse) XXX_DiscardUnknown() { - xxx_messageInfo_HumanResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_HumanResponse proto.InternalMessageInfo - -func (m *HumanResponse) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *HumanResponse) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *HumanResponse) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *HumanResponse) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *HumanResponse) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *HumanResponse) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *HumanResponse) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *HumanResponse) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified - } - return false -} - -func (m *HumanResponse) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -func (m *HumanResponse) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified - } - return false -} - -func (m *HumanResponse) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *HumanResponse) GetLocality() string { - if m != nil { - return m.Locality - } - return "" -} - -func (m *HumanResponse) GetPostalCode() string { - if m != nil { - return m.PostalCode - } - return "" -} - -func (m *HumanResponse) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *HumanResponse) GetStreetAddress() string { - if m != nil { - return m.StreetAddress - } - return "" -} - -type HumanView struct { - PasswordChanged *timestamp.Timestamp `protobuf:"bytes,1,opt,name=password_changed,json=passwordChanged,proto3" json:"password_changed,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Email string `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,9,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Phone string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,11,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Country string `protobuf:"bytes,12,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,13,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,14,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,15,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,16,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HumanView) Reset() { *m = HumanView{} } -func (m *HumanView) String() string { return proto.CompactTextString(m) } -func (*HumanView) ProtoMessage() {} -func (*HumanView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{17} -} - -func (m *HumanView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HumanView.Unmarshal(m, b) -} -func (m *HumanView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HumanView.Marshal(b, m, deterministic) -} -func (m *HumanView) XXX_Merge(src proto.Message) { - xxx_messageInfo_HumanView.Merge(m, src) -} -func (m *HumanView) XXX_Size() int { - return xxx_messageInfo_HumanView.Size(m) -} -func (m *HumanView) XXX_DiscardUnknown() { - xxx_messageInfo_HumanView.DiscardUnknown(m) -} - -var xxx_messageInfo_HumanView proto.InternalMessageInfo - -func (m *HumanView) GetPasswordChanged() *timestamp.Timestamp { - if m != nil { - return m.PasswordChanged - } - return nil -} - -func (m *HumanView) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *HumanView) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *HumanView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *HumanView) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *HumanView) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *HumanView) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *HumanView) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *HumanView) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified - } - return false -} - -func (m *HumanView) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -func (m *HumanView) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified - } - return false -} - -func (m *HumanView) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *HumanView) GetLocality() string { - if m != nil { - return m.Locality - } - return "" -} - -func (m *HumanView) GetPostalCode() string { - if m != nil { - return m.PostalCode - } - return "" -} - -func (m *HumanView) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *HumanView) GetStreetAddress() string { - if m != nil { - return m.StreetAddress - } - return "" -} - -type MachineResponse struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MachineResponse) Reset() { *m = MachineResponse{} } -func (m *MachineResponse) String() string { return proto.CompactTextString(m) } -func (*MachineResponse) ProtoMessage() {} -func (*MachineResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{18} -} - -func (m *MachineResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MachineResponse.Unmarshal(m, b) -} -func (m *MachineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MachineResponse.Marshal(b, m, deterministic) -} -func (m *MachineResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineResponse.Merge(m, src) -} -func (m *MachineResponse) XXX_Size() int { - return xxx_messageInfo_MachineResponse.Size(m) -} -func (m *MachineResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MachineResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MachineResponse proto.InternalMessageInfo - -func (m *MachineResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *MachineResponse) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type MachineView struct { - LastKeyAdded *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_key_added,json=lastKeyAdded,proto3" json:"last_key_added,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MachineView) Reset() { *m = MachineView{} } -func (m *MachineView) String() string { return proto.CompactTextString(m) } -func (*MachineView) ProtoMessage() {} -func (*MachineView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{19} -} - -func (m *MachineView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MachineView.Unmarshal(m, b) -} -func (m *MachineView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MachineView.Marshal(b, m, deterministic) -} -func (m *MachineView) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineView.Merge(m, src) -} -func (m *MachineView) XXX_Size() int { - return xxx_messageInfo_MachineView.Size(m) -} -func (m *MachineView) XXX_DiscardUnknown() { - xxx_messageInfo_MachineView.DiscardUnknown(m) -} - -var xxx_messageInfo_MachineView proto.InternalMessageInfo - -func (m *MachineView) GetLastKeyAdded() *timestamp.Timestamp { - if m != nil { - return m.LastKeyAdded - } - return nil -} - -func (m *MachineView) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *MachineView) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type UpdateMachineRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateMachineRequest) Reset() { *m = UpdateMachineRequest{} } -func (m *UpdateMachineRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateMachineRequest) ProtoMessage() {} -func (*UpdateMachineRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{20} -} - -func (m *UpdateMachineRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateMachineRequest.Unmarshal(m, b) -} -func (m *UpdateMachineRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateMachineRequest.Marshal(b, m, deterministic) -} -func (m *UpdateMachineRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMachineRequest.Merge(m, src) -} -func (m *UpdateMachineRequest) XXX_Size() int { - return xxx_messageInfo_UpdateMachineRequest.Size(m) -} -func (m *UpdateMachineRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateMachineRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateMachineRequest proto.InternalMessageInfo - -func (m *UpdateMachineRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UpdateMachineRequest) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -type AddMachineKeyRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Type MachineKeyType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.MachineKeyType" json:"type,omitempty"` - ExpirationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddMachineKeyRequest) Reset() { *m = AddMachineKeyRequest{} } -func (m *AddMachineKeyRequest) String() string { return proto.CompactTextString(m) } -func (*AddMachineKeyRequest) ProtoMessage() {} -func (*AddMachineKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{21} -} - -func (m *AddMachineKeyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddMachineKeyRequest.Unmarshal(m, b) -} -func (m *AddMachineKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddMachineKeyRequest.Marshal(b, m, deterministic) -} -func (m *AddMachineKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddMachineKeyRequest.Merge(m, src) -} -func (m *AddMachineKeyRequest) XXX_Size() int { - return xxx_messageInfo_AddMachineKeyRequest.Size(m) -} -func (m *AddMachineKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddMachineKeyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AddMachineKeyRequest proto.InternalMessageInfo - -func (m *AddMachineKeyRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *AddMachineKeyRequest) GetType() MachineKeyType { - if m != nil { - return m.Type - } - return MachineKeyType_MACHINEKEY_UNSPECIFIED -} - -func (m *AddMachineKeyRequest) GetExpirationDate() *timestamp.Timestamp { - if m != nil { - return m.ExpirationDate - } - return nil -} - -type AddMachineKeyResponse struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - Type MachineKeyType `protobuf:"varint,4,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.MachineKeyType" json:"type,omitempty"` - ExpirationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` - KeyDetails []byte `protobuf:"bytes,6,opt,name=key_details,json=keyDetails,proto3" json:"key_details,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddMachineKeyResponse) Reset() { *m = AddMachineKeyResponse{} } -func (m *AddMachineKeyResponse) String() string { return proto.CompactTextString(m) } -func (*AddMachineKeyResponse) ProtoMessage() {} -func (*AddMachineKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{22} -} - -func (m *AddMachineKeyResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddMachineKeyResponse.Unmarshal(m, b) -} -func (m *AddMachineKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddMachineKeyResponse.Marshal(b, m, deterministic) -} -func (m *AddMachineKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddMachineKeyResponse.Merge(m, src) -} -func (m *AddMachineKeyResponse) XXX_Size() int { - return xxx_messageInfo_AddMachineKeyResponse.Size(m) -} -func (m *AddMachineKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddMachineKeyResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AddMachineKeyResponse proto.InternalMessageInfo - -func (m *AddMachineKeyResponse) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *AddMachineKeyResponse) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *AddMachineKeyResponse) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *AddMachineKeyResponse) GetType() MachineKeyType { - if m != nil { - return m.Type - } - return MachineKeyType_MACHINEKEY_UNSPECIFIED -} - -func (m *AddMachineKeyResponse) GetExpirationDate() *timestamp.Timestamp { - if m != nil { - return m.ExpirationDate - } - return nil -} - -func (m *AddMachineKeyResponse) GetKeyDetails() []byte { - if m != nil { - return m.KeyDetails - } - return nil -} - -type MachineKeyIDRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MachineKeyIDRequest) Reset() { *m = MachineKeyIDRequest{} } -func (m *MachineKeyIDRequest) String() string { return proto.CompactTextString(m) } -func (*MachineKeyIDRequest) ProtoMessage() {} -func (*MachineKeyIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{23} -} - -func (m *MachineKeyIDRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MachineKeyIDRequest.Unmarshal(m, b) -} -func (m *MachineKeyIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MachineKeyIDRequest.Marshal(b, m, deterministic) -} -func (m *MachineKeyIDRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineKeyIDRequest.Merge(m, src) -} -func (m *MachineKeyIDRequest) XXX_Size() int { - return xxx_messageInfo_MachineKeyIDRequest.Size(m) -} -func (m *MachineKeyIDRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MachineKeyIDRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MachineKeyIDRequest proto.InternalMessageInfo - -func (m *MachineKeyIDRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *MachineKeyIDRequest) GetKeyId() string { - if m != nil { - return m.KeyId - } - return "" -} - -type MachineKeyView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type MachineKeyType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.MachineKeyType" json:"type,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ExpirationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expiration_date,json=expirationDate,proto3" json:"expiration_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MachineKeyView) Reset() { *m = MachineKeyView{} } -func (m *MachineKeyView) String() string { return proto.CompactTextString(m) } -func (*MachineKeyView) ProtoMessage() {} -func (*MachineKeyView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{24} -} - -func (m *MachineKeyView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MachineKeyView.Unmarshal(m, b) -} -func (m *MachineKeyView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MachineKeyView.Marshal(b, m, deterministic) -} -func (m *MachineKeyView) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineKeyView.Merge(m, src) -} -func (m *MachineKeyView) XXX_Size() int { - return xxx_messageInfo_MachineKeyView.Size(m) -} -func (m *MachineKeyView) XXX_DiscardUnknown() { - xxx_messageInfo_MachineKeyView.DiscardUnknown(m) -} - -var xxx_messageInfo_MachineKeyView proto.InternalMessageInfo - -func (m *MachineKeyView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *MachineKeyView) GetType() MachineKeyType { - if m != nil { - return m.Type - } - return MachineKeyType_MACHINEKEY_UNSPECIFIED -} - -func (m *MachineKeyView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *MachineKeyView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *MachineKeyView) GetExpirationDate() *timestamp.Timestamp { - if m != nil { - return m.ExpirationDate - } - return nil -} - -type MachineKeySearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Asc bool `protobuf:"varint,3,opt,name=asc,proto3" json:"asc,omitempty"` - UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MachineKeySearchRequest) Reset() { *m = MachineKeySearchRequest{} } -func (m *MachineKeySearchRequest) String() string { return proto.CompactTextString(m) } -func (*MachineKeySearchRequest) ProtoMessage() {} -func (*MachineKeySearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{25} -} - -func (m *MachineKeySearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MachineKeySearchRequest.Unmarshal(m, b) -} -func (m *MachineKeySearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MachineKeySearchRequest.Marshal(b, m, deterministic) -} -func (m *MachineKeySearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineKeySearchRequest.Merge(m, src) -} -func (m *MachineKeySearchRequest) XXX_Size() int { - return xxx_messageInfo_MachineKeySearchRequest.Size(m) -} -func (m *MachineKeySearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_MachineKeySearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_MachineKeySearchRequest proto.InternalMessageInfo - -func (m *MachineKeySearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *MachineKeySearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *MachineKeySearchRequest) GetAsc() bool { - if m != nil { - return m.Asc - } - return false -} - -func (m *MachineKeySearchRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type MachineKeySearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*MachineKeyView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MachineKeySearchResponse) Reset() { *m = MachineKeySearchResponse{} } -func (m *MachineKeySearchResponse) String() string { return proto.CompactTextString(m) } -func (*MachineKeySearchResponse) ProtoMessage() {} -func (*MachineKeySearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{26} -} - -func (m *MachineKeySearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MachineKeySearchResponse.Unmarshal(m, b) -} -func (m *MachineKeySearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MachineKeySearchResponse.Marshal(b, m, deterministic) -} -func (m *MachineKeySearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MachineKeySearchResponse.Merge(m, src) -} -func (m *MachineKeySearchResponse) XXX_Size() int { - return xxx_messageInfo_MachineKeySearchResponse.Size(m) -} -func (m *MachineKeySearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MachineKeySearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_MachineKeySearchResponse proto.InternalMessageInfo - -func (m *MachineKeySearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *MachineKeySearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *MachineKeySearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *MachineKeySearchResponse) GetResult() []*MachineKeyView { - if m != nil { - return m.Result - } - return nil -} - -func (m *MachineKeySearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *MachineKeySearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type UserSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - SortingColumn UserSearchKey `protobuf:"varint,3,opt,name=sorting_column,json=sortingColumn,proto3,enum=caos.zitadel.management.api.v1.UserSearchKey" json:"sorting_column,omitempty"` - Asc bool `protobuf:"varint,4,opt,name=asc,proto3" json:"asc,omitempty"` - Queries []*UserSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserSearchRequest) Reset() { *m = UserSearchRequest{} } -func (m *UserSearchRequest) String() string { return proto.CompactTextString(m) } -func (*UserSearchRequest) ProtoMessage() {} -func (*UserSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{27} -} - -func (m *UserSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSearchRequest.Unmarshal(m, b) -} -func (m *UserSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSearchRequest.Marshal(b, m, deterministic) -} -func (m *UserSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSearchRequest.Merge(m, src) -} -func (m *UserSearchRequest) XXX_Size() int { - return xxx_messageInfo_UserSearchRequest.Size(m) -} -func (m *UserSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSearchRequest proto.InternalMessageInfo - -func (m *UserSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *UserSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *UserSearchRequest) GetSortingColumn() UserSearchKey { - if m != nil { - return m.SortingColumn - } - return UserSearchKey_USERSEARCHKEY_UNSPECIFIED -} - -func (m *UserSearchRequest) GetAsc() bool { - if m != nil { - return m.Asc - } - return false -} - -func (m *UserSearchRequest) GetQueries() []*UserSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type UserSearchQuery struct { - Key UserSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserSearchQuery) Reset() { *m = UserSearchQuery{} } -func (m *UserSearchQuery) String() string { return proto.CompactTextString(m) } -func (*UserSearchQuery) ProtoMessage() {} -func (*UserSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{28} -} - -func (m *UserSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSearchQuery.Unmarshal(m, b) -} -func (m *UserSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSearchQuery.Marshal(b, m, deterministic) -} -func (m *UserSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSearchQuery.Merge(m, src) -} -func (m *UserSearchQuery) XXX_Size() int { - return xxx_messageInfo_UserSearchQuery.Size(m) -} -func (m *UserSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_UserSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSearchQuery proto.InternalMessageInfo - -func (m *UserSearchQuery) GetKey() UserSearchKey { - if m != nil { - return m.Key - } - return UserSearchKey_USERSEARCHKEY_UNSPECIFIED -} - -func (m *UserSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *UserSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type UserSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*UserView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserSearchResponse) Reset() { *m = UserSearchResponse{} } -func (m *UserSearchResponse) String() string { return proto.CompactTextString(m) } -func (*UserSearchResponse) ProtoMessage() {} -func (*UserSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{29} -} - -func (m *UserSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserSearchResponse.Unmarshal(m, b) -} -func (m *UserSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserSearchResponse.Marshal(b, m, deterministic) -} -func (m *UserSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserSearchResponse.Merge(m, src) -} -func (m *UserSearchResponse) XXX_Size() int { - return xxx_messageInfo_UserSearchResponse.Size(m) -} -func (m *UserSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UserSearchResponse proto.InternalMessageInfo - -func (m *UserSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *UserSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *UserSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *UserSearchResponse) GetResult() []*UserView { - if m != nil { - return m.Result - } - return nil -} - -func (m *UserSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *UserSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type UserProfile struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserProfile) Reset() { *m = UserProfile{} } -func (m *UserProfile) String() string { return proto.CompactTextString(m) } -func (*UserProfile) ProtoMessage() {} -func (*UserProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{30} -} - -func (m *UserProfile) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserProfile.Unmarshal(m, b) -} -func (m *UserProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserProfile.Marshal(b, m, deterministic) -} -func (m *UserProfile) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserProfile.Merge(m, src) -} -func (m *UserProfile) XXX_Size() int { - return xxx_messageInfo_UserProfile.Size(m) -} -func (m *UserProfile) XXX_DiscardUnknown() { - xxx_messageInfo_UserProfile.DiscardUnknown(m) -} - -var xxx_messageInfo_UserProfile proto.InternalMessageInfo - -func (m *UserProfile) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserProfile) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *UserProfile) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *UserProfile) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *UserProfile) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *UserProfile) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *UserProfile) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *UserProfile) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserProfile) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserProfile) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UserProfileView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,6,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,7,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,10,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - LoginNames []string `protobuf:"bytes,11,rep,name=login_names,json=loginNames,proto3" json:"login_names,omitempty"` - PreferredLoginName string `protobuf:"bytes,12,opt,name=preferred_login_name,json=preferredLoginName,proto3" json:"preferred_login_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserProfileView) Reset() { *m = UserProfileView{} } -func (m *UserProfileView) String() string { return proto.CompactTextString(m) } -func (*UserProfileView) ProtoMessage() {} -func (*UserProfileView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{31} -} - -func (m *UserProfileView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserProfileView.Unmarshal(m, b) -} -func (m *UserProfileView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserProfileView.Marshal(b, m, deterministic) -} -func (m *UserProfileView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserProfileView.Merge(m, src) -} -func (m *UserProfileView) XXX_Size() int { - return xxx_messageInfo_UserProfileView.Size(m) -} -func (m *UserProfileView) XXX_DiscardUnknown() { - xxx_messageInfo_UserProfileView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserProfileView proto.InternalMessageInfo - -func (m *UserProfileView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserProfileView) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *UserProfileView) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *UserProfileView) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *UserProfileView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *UserProfileView) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *UserProfileView) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -func (m *UserProfileView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserProfileView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserProfileView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *UserProfileView) GetLoginNames() []string { - if m != nil { - return m.LoginNames - } - return nil -} - -func (m *UserProfileView) GetPreferredLoginName() string { - if m != nil { - return m.PreferredLoginName - } - return "" -} - -type UpdateUserProfileRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` - PreferredLanguage string `protobuf:"bytes,5,opt,name=preferred_language,json=preferredLanguage,proto3" json:"preferred_language,omitempty"` - Gender Gender `protobuf:"varint,6,opt,name=gender,proto3,enum=caos.zitadel.management.api.v1.Gender" json:"gender,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateUserProfileRequest) Reset() { *m = UpdateUserProfileRequest{} } -func (m *UpdateUserProfileRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserProfileRequest) ProtoMessage() {} -func (*UpdateUserProfileRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{32} -} - -func (m *UpdateUserProfileRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserProfileRequest.Unmarshal(m, b) -} -func (m *UpdateUserProfileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserProfileRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserProfileRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserProfileRequest.Merge(m, src) -} -func (m *UpdateUserProfileRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserProfileRequest.Size(m) -} -func (m *UpdateUserProfileRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserProfileRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserProfileRequest proto.InternalMessageInfo - -func (m *UpdateUserProfileRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UpdateUserProfileRequest) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *UpdateUserProfileRequest) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *UpdateUserProfileRequest) GetNickName() string { - if m != nil { - return m.NickName - } - return "" -} - -func (m *UpdateUserProfileRequest) GetPreferredLanguage() string { - if m != nil { - return m.PreferredLanguage - } - return "" -} - -func (m *UpdateUserProfileRequest) GetGender() Gender { - if m != nil { - return m.Gender - } - return Gender_GENDER_UNSPECIFIED -} - -type UpdateUserUserNameRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateUserUserNameRequest) Reset() { *m = UpdateUserUserNameRequest{} } -func (m *UpdateUserUserNameRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserUserNameRequest) ProtoMessage() {} -func (*UpdateUserUserNameRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{33} -} - -func (m *UpdateUserUserNameRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserUserNameRequest.Unmarshal(m, b) -} -func (m *UpdateUserUserNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserUserNameRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserUserNameRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserUserNameRequest.Merge(m, src) -} -func (m *UpdateUserUserNameRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserUserNameRequest.Size(m) -} -func (m *UpdateUserUserNameRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserUserNameRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserUserNameRequest proto.InternalMessageInfo - -func (m *UpdateUserUserNameRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UpdateUserUserNameRequest) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -type UserEmail struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,3,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserEmail) Reset() { *m = UserEmail{} } -func (m *UserEmail) String() string { return proto.CompactTextString(m) } -func (*UserEmail) ProtoMessage() {} -func (*UserEmail) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{34} -} - -func (m *UserEmail) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserEmail.Unmarshal(m, b) -} -func (m *UserEmail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserEmail.Marshal(b, m, deterministic) -} -func (m *UserEmail) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserEmail.Merge(m, src) -} -func (m *UserEmail) XXX_Size() int { - return xxx_messageInfo_UserEmail.Size(m) -} -func (m *UserEmail) XXX_DiscardUnknown() { - xxx_messageInfo_UserEmail.DiscardUnknown(m) -} - -var xxx_messageInfo_UserEmail proto.InternalMessageInfo - -func (m *UserEmail) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserEmail) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *UserEmail) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified - } - return false -} - -func (m *UserEmail) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserEmail) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserEmail) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UserEmailView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,3,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserEmailView) Reset() { *m = UserEmailView{} } -func (m *UserEmailView) String() string { return proto.CompactTextString(m) } -func (*UserEmailView) ProtoMessage() {} -func (*UserEmailView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{35} -} - -func (m *UserEmailView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserEmailView.Unmarshal(m, b) -} -func (m *UserEmailView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserEmailView.Marshal(b, m, deterministic) -} -func (m *UserEmailView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserEmailView.Merge(m, src) -} -func (m *UserEmailView) XXX_Size() int { - return xxx_messageInfo_UserEmailView.Size(m) -} -func (m *UserEmailView) XXX_DiscardUnknown() { - xxx_messageInfo_UserEmailView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserEmailView proto.InternalMessageInfo - -func (m *UserEmailView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserEmailView) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *UserEmailView) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified - } - return false -} - -func (m *UserEmailView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserEmailView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserEmailView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UpdateUserEmailRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - IsEmailVerified bool `protobuf:"varint,3,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateUserEmailRequest) Reset() { *m = UpdateUserEmailRequest{} } -func (m *UpdateUserEmailRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserEmailRequest) ProtoMessage() {} -func (*UpdateUserEmailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{36} -} - -func (m *UpdateUserEmailRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserEmailRequest.Unmarshal(m, b) -} -func (m *UpdateUserEmailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserEmailRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserEmailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserEmailRequest.Merge(m, src) -} -func (m *UpdateUserEmailRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserEmailRequest.Size(m) -} -func (m *UpdateUserEmailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserEmailRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserEmailRequest proto.InternalMessageInfo - -func (m *UpdateUserEmailRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UpdateUserEmailRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *UpdateUserEmailRequest) GetIsEmailVerified() bool { - if m != nil { - return m.IsEmailVerified - } - return false -} - -type UserPhone struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserPhone) Reset() { *m = UserPhone{} } -func (m *UserPhone) String() string { return proto.CompactTextString(m) } -func (*UserPhone) ProtoMessage() {} -func (*UserPhone) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{37} -} - -func (m *UserPhone) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserPhone.Unmarshal(m, b) -} -func (m *UserPhone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserPhone.Marshal(b, m, deterministic) -} -func (m *UserPhone) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserPhone.Merge(m, src) -} -func (m *UserPhone) XXX_Size() int { - return xxx_messageInfo_UserPhone.Size(m) -} -func (m *UserPhone) XXX_DiscardUnknown() { - xxx_messageInfo_UserPhone.DiscardUnknown(m) -} - -var xxx_messageInfo_UserPhone proto.InternalMessageInfo - -func (m *UserPhone) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserPhone) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -func (m *UserPhone) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified - } - return false -} - -func (m *UserPhone) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserPhone) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserPhone) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UserPhoneView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserPhoneView) Reset() { *m = UserPhoneView{} } -func (m *UserPhoneView) String() string { return proto.CompactTextString(m) } -func (*UserPhoneView) ProtoMessage() {} -func (*UserPhoneView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{38} -} - -func (m *UserPhoneView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserPhoneView.Unmarshal(m, b) -} -func (m *UserPhoneView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserPhoneView.Marshal(b, m, deterministic) -} -func (m *UserPhoneView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserPhoneView.Merge(m, src) -} -func (m *UserPhoneView) XXX_Size() int { - return xxx_messageInfo_UserPhoneView.Size(m) -} -func (m *UserPhoneView) XXX_DiscardUnknown() { - xxx_messageInfo_UserPhoneView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserPhoneView proto.InternalMessageInfo - -func (m *UserPhoneView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserPhoneView) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -func (m *UserPhoneView) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified - } - return false -} - -func (m *UserPhoneView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserPhoneView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserPhoneView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UpdateUserPhoneRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` - IsPhoneVerified bool `protobuf:"varint,3,opt,name=is_phone_verified,json=isPhoneVerified,proto3" json:"is_phone_verified,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateUserPhoneRequest) Reset() { *m = UpdateUserPhoneRequest{} } -func (m *UpdateUserPhoneRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserPhoneRequest) ProtoMessage() {} -func (*UpdateUserPhoneRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{39} -} - -func (m *UpdateUserPhoneRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserPhoneRequest.Unmarshal(m, b) -} -func (m *UpdateUserPhoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserPhoneRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserPhoneRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserPhoneRequest.Merge(m, src) -} -func (m *UpdateUserPhoneRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserPhoneRequest.Size(m) -} -func (m *UpdateUserPhoneRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserPhoneRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserPhoneRequest proto.InternalMessageInfo - -func (m *UpdateUserPhoneRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UpdateUserPhoneRequest) GetPhone() string { - if m != nil { - return m.Phone - } - return "" -} - -func (m *UpdateUserPhoneRequest) GetIsPhoneVerified() bool { - if m != nil { - return m.IsPhoneVerified - } - return false -} - -type UserAddress struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAddress) Reset() { *m = UserAddress{} } -func (m *UserAddress) String() string { return proto.CompactTextString(m) } -func (*UserAddress) ProtoMessage() {} -func (*UserAddress) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{40} -} - -func (m *UserAddress) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAddress.Unmarshal(m, b) -} -func (m *UserAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAddress.Marshal(b, m, deterministic) -} -func (m *UserAddress) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAddress.Merge(m, src) -} -func (m *UserAddress) XXX_Size() int { - return xxx_messageInfo_UserAddress.Size(m) -} -func (m *UserAddress) XXX_DiscardUnknown() { - xxx_messageInfo_UserAddress.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAddress proto.InternalMessageInfo - -func (m *UserAddress) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserAddress) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *UserAddress) GetLocality() string { - if m != nil { - return m.Locality - } - return "" -} - -func (m *UserAddress) GetPostalCode() string { - if m != nil { - return m.PostalCode - } - return "" -} - -func (m *UserAddress) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *UserAddress) GetStreetAddress() string { - if m != nil { - return m.StreetAddress - } - return "" -} - -func (m *UserAddress) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserAddress) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserAddress) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UserAddressView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserAddressView) Reset() { *m = UserAddressView{} } -func (m *UserAddressView) String() string { return proto.CompactTextString(m) } -func (*UserAddressView) ProtoMessage() {} -func (*UserAddressView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{41} -} - -func (m *UserAddressView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserAddressView.Unmarshal(m, b) -} -func (m *UserAddressView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserAddressView.Marshal(b, m, deterministic) -} -func (m *UserAddressView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserAddressView.Merge(m, src) -} -func (m *UserAddressView) XXX_Size() int { - return xxx_messageInfo_UserAddressView.Size(m) -} -func (m *UserAddressView) XXX_DiscardUnknown() { - xxx_messageInfo_UserAddressView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserAddressView proto.InternalMessageInfo - -func (m *UserAddressView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserAddressView) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *UserAddressView) GetLocality() string { - if m != nil { - return m.Locality - } - return "" -} - -func (m *UserAddressView) GetPostalCode() string { - if m != nil { - return m.PostalCode - } - return "" -} - -func (m *UserAddressView) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *UserAddressView) GetStreetAddress() string { - if m != nil { - return m.StreetAddress - } - return "" -} - -func (m *UserAddressView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserAddressView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserAddressView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type UpdateUserAddressRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"` - Locality string `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality,omitempty"` - PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` - Region string `protobuf:"bytes,5,opt,name=region,proto3" json:"region,omitempty"` - StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateUserAddressRequest) Reset() { *m = UpdateUserAddressRequest{} } -func (m *UpdateUserAddressRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateUserAddressRequest) ProtoMessage() {} -func (*UpdateUserAddressRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{42} -} - -func (m *UpdateUserAddressRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateUserAddressRequest.Unmarshal(m, b) -} -func (m *UpdateUserAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateUserAddressRequest.Marshal(b, m, deterministic) -} -func (m *UpdateUserAddressRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateUserAddressRequest.Merge(m, src) -} -func (m *UpdateUserAddressRequest) XXX_Size() int { - return xxx_messageInfo_UpdateUserAddressRequest.Size(m) -} -func (m *UpdateUserAddressRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateUserAddressRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateUserAddressRequest proto.InternalMessageInfo - -func (m *UpdateUserAddressRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UpdateUserAddressRequest) GetCountry() string { - if m != nil { - return m.Country - } - return "" -} - -func (m *UpdateUserAddressRequest) GetLocality() string { - if m != nil { - return m.Locality - } - return "" -} - -func (m *UpdateUserAddressRequest) GetPostalCode() string { - if m != nil { - return m.PostalCode - } - return "" -} - -func (m *UpdateUserAddressRequest) GetRegion() string { - if m != nil { - return m.Region - } - return "" -} - -func (m *UpdateUserAddressRequest) GetStreetAddress() string { - if m != nil { - return m.StreetAddress - } - return "" -} - -type UserMultiFactors struct { - Mfas []*UserMultiFactor `protobuf:"bytes,1,rep,name=mfas,proto3" json:"mfas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserMultiFactors) Reset() { *m = UserMultiFactors{} } -func (m *UserMultiFactors) String() string { return proto.CompactTextString(m) } -func (*UserMultiFactors) ProtoMessage() {} -func (*UserMultiFactors) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{43} -} - -func (m *UserMultiFactors) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMultiFactors.Unmarshal(m, b) -} -func (m *UserMultiFactors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMultiFactors.Marshal(b, m, deterministic) -} -func (m *UserMultiFactors) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMultiFactors.Merge(m, src) -} -func (m *UserMultiFactors) XXX_Size() int { - return xxx_messageInfo_UserMultiFactors.Size(m) -} -func (m *UserMultiFactors) XXX_DiscardUnknown() { - xxx_messageInfo_UserMultiFactors.DiscardUnknown(m) -} - -var xxx_messageInfo_UserMultiFactors proto.InternalMessageInfo - -func (m *UserMultiFactors) GetMfas() []*UserMultiFactor { - if m != nil { - return m.Mfas - } - return nil -} - -type UserMultiFactor struct { - Type MfaType `protobuf:"varint,1,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.MfaType" json:"type,omitempty"` - State MFAState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.MFAState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserMultiFactor) Reset() { *m = UserMultiFactor{} } -func (m *UserMultiFactor) String() string { return proto.CompactTextString(m) } -func (*UserMultiFactor) ProtoMessage() {} -func (*UserMultiFactor) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{44} -} - -func (m *UserMultiFactor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMultiFactor.Unmarshal(m, b) -} -func (m *UserMultiFactor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMultiFactor.Marshal(b, m, deterministic) -} -func (m *UserMultiFactor) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMultiFactor.Merge(m, src) -} -func (m *UserMultiFactor) XXX_Size() int { - return xxx_messageInfo_UserMultiFactor.Size(m) -} -func (m *UserMultiFactor) XXX_DiscardUnknown() { - xxx_messageInfo_UserMultiFactor.DiscardUnknown(m) -} - -var xxx_messageInfo_UserMultiFactor proto.InternalMessageInfo - -func (m *UserMultiFactor) GetType() MfaType { - if m != nil { - return m.Type - } - return MfaType_MFATYPE_UNSPECIFIED -} - -func (m *UserMultiFactor) GetState() MFAState { - if m != nil { - return m.State - } - return MFAState_MFASTATE_UNSPECIFIED -} - -type PasswordRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordRequest) Reset() { *m = PasswordRequest{} } -func (m *PasswordRequest) String() string { return proto.CompactTextString(m) } -func (*PasswordRequest) ProtoMessage() {} -func (*PasswordRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{45} -} - -func (m *PasswordRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordRequest.Unmarshal(m, b) -} -func (m *PasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordRequest.Marshal(b, m, deterministic) -} -func (m *PasswordRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordRequest.Merge(m, src) -} -func (m *PasswordRequest) XXX_Size() int { - return xxx_messageInfo_PasswordRequest.Size(m) -} -func (m *PasswordRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordRequest proto.InternalMessageInfo - -func (m *PasswordRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *PasswordRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type SetPasswordNotificationRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Type NotificationType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.NotificationType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetPasswordNotificationRequest) Reset() { *m = SetPasswordNotificationRequest{} } -func (m *SetPasswordNotificationRequest) String() string { return proto.CompactTextString(m) } -func (*SetPasswordNotificationRequest) ProtoMessage() {} -func (*SetPasswordNotificationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{46} -} - -func (m *SetPasswordNotificationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetPasswordNotificationRequest.Unmarshal(m, b) -} -func (m *SetPasswordNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetPasswordNotificationRequest.Marshal(b, m, deterministic) -} -func (m *SetPasswordNotificationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetPasswordNotificationRequest.Merge(m, src) -} -func (m *SetPasswordNotificationRequest) XXX_Size() int { - return xxx_messageInfo_SetPasswordNotificationRequest.Size(m) -} -func (m *SetPasswordNotificationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SetPasswordNotificationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SetPasswordNotificationRequest proto.InternalMessageInfo - -func (m *SetPasswordNotificationRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *SetPasswordNotificationRequest) GetType() NotificationType { - if m != nil { - return m.Type - } - return NotificationType_NOTIFICATIONTYPE_EMAIL -} - -type InitialMailRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InitialMailRequest) Reset() { *m = InitialMailRequest{} } -func (m *InitialMailRequest) String() string { return proto.CompactTextString(m) } -func (*InitialMailRequest) ProtoMessage() {} -func (*InitialMailRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{47} -} - -func (m *InitialMailRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InitialMailRequest.Unmarshal(m, b) -} -func (m *InitialMailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InitialMailRequest.Marshal(b, m, deterministic) -} -func (m *InitialMailRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_InitialMailRequest.Merge(m, src) -} -func (m *InitialMailRequest) XXX_Size() int { - return xxx_messageInfo_InitialMailRequest.Size(m) -} -func (m *InitialMailRequest) XXX_DiscardUnknown() { - xxx_messageInfo_InitialMailRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_InitialMailRequest proto.InternalMessageInfo - -func (m *InitialMailRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *InitialMailRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -type OrgIamPolicyView struct { - UserLoginMustBeDomain bool `protobuf:"varint,1,opt,name=user_login_must_be_domain,json=userLoginMustBeDomain,proto3" json:"user_login_must_be_domain,omitempty"` - Default bool `protobuf:"varint,2,opt,name=default,proto3" json:"default,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgIamPolicyView) Reset() { *m = OrgIamPolicyView{} } -func (m *OrgIamPolicyView) String() string { return proto.CompactTextString(m) } -func (*OrgIamPolicyView) ProtoMessage() {} -func (*OrgIamPolicyView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{48} -} - -func (m *OrgIamPolicyView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgIamPolicyView.Unmarshal(m, b) -} -func (m *OrgIamPolicyView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgIamPolicyView.Marshal(b, m, deterministic) -} -func (m *OrgIamPolicyView) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgIamPolicyView.Merge(m, src) -} -func (m *OrgIamPolicyView) XXX_Size() int { - return xxx_messageInfo_OrgIamPolicyView.Size(m) -} -func (m *OrgIamPolicyView) XXX_DiscardUnknown() { - xxx_messageInfo_OrgIamPolicyView.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgIamPolicyView proto.InternalMessageInfo - -func (m *OrgIamPolicyView) GetUserLoginMustBeDomain() bool { - if m != nil { - return m.UserLoginMustBeDomain - } - return false -} - -func (m *OrgIamPolicyView) GetDefault() bool { - if m != nil { - return m.Default - } - return false -} - -type OrgCreateRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgCreateRequest) Reset() { *m = OrgCreateRequest{} } -func (m *OrgCreateRequest) String() string { return proto.CompactTextString(m) } -func (*OrgCreateRequest) ProtoMessage() {} -func (*OrgCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{49} -} - -func (m *OrgCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgCreateRequest.Unmarshal(m, b) -} -func (m *OrgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgCreateRequest.Marshal(b, m, deterministic) -} -func (m *OrgCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgCreateRequest.Merge(m, src) -} -func (m *OrgCreateRequest) XXX_Size() int { - return xxx_messageInfo_OrgCreateRequest.Size(m) -} -func (m *OrgCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OrgCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgCreateRequest proto.InternalMessageInfo - -func (m *OrgCreateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type Org struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.OrgState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Org) Reset() { *m = Org{} } -func (m *Org) String() string { return proto.CompactTextString(m) } -func (*Org) ProtoMessage() {} -func (*Org) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{50} -} - -func (m *Org) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Org.Unmarshal(m, b) -} -func (m *Org) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Org.Marshal(b, m, deterministic) -} -func (m *Org) XXX_Merge(src proto.Message) { - xxx_messageInfo_Org.Merge(m, src) -} -func (m *Org) XXX_Size() int { - return xxx_messageInfo_Org.Size(m) -} -func (m *Org) XXX_DiscardUnknown() { - xxx_messageInfo_Org.DiscardUnknown(m) -} - -var xxx_messageInfo_Org proto.InternalMessageInfo - -func (m *Org) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Org) GetState() OrgState { - if m != nil { - return m.State - } - return OrgState_ORGSTATE_UNSPECIFIED -} - -func (m *Org) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *Org) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *Org) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Org) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type OrgView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State OrgState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.OrgState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgView) Reset() { *m = OrgView{} } -func (m *OrgView) String() string { return proto.CompactTextString(m) } -func (*OrgView) ProtoMessage() {} -func (*OrgView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{51} -} - -func (m *OrgView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgView.Unmarshal(m, b) -} -func (m *OrgView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgView.Marshal(b, m, deterministic) -} -func (m *OrgView) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgView.Merge(m, src) -} -func (m *OrgView) XXX_Size() int { - return xxx_messageInfo_OrgView.Size(m) -} -func (m *OrgView) XXX_DiscardUnknown() { - xxx_messageInfo_OrgView.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgView proto.InternalMessageInfo - -func (m *OrgView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *OrgView) GetState() OrgState { - if m != nil { - return m.State - } - return OrgState_ORGSTATE_UNSPECIFIED -} - -func (m *OrgView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *OrgView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *OrgView) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *OrgView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type Domain struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Domain) Reset() { *m = Domain{} } -func (m *Domain) String() string { return proto.CompactTextString(m) } -func (*Domain) ProtoMessage() {} -func (*Domain) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{52} -} - -func (m *Domain) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Domain.Unmarshal(m, b) -} -func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Domain.Marshal(b, m, deterministic) -} -func (m *Domain) XXX_Merge(src proto.Message) { - xxx_messageInfo_Domain.Merge(m, src) -} -func (m *Domain) XXX_Size() int { - return xxx_messageInfo_Domain.Size(m) -} -func (m *Domain) XXX_DiscardUnknown() { - xxx_messageInfo_Domain.DiscardUnknown(m) -} - -var xxx_messageInfo_Domain proto.InternalMessageInfo - -func (m *Domain) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -type OrgDomain struct { - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` - Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` - Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomain) Reset() { *m = OrgDomain{} } -func (m *OrgDomain) String() string { return proto.CompactTextString(m) } -func (*OrgDomain) ProtoMessage() {} -func (*OrgDomain) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{53} -} - -func (m *OrgDomain) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomain.Unmarshal(m, b) -} -func (m *OrgDomain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomain.Marshal(b, m, deterministic) -} -func (m *OrgDomain) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomain.Merge(m, src) -} -func (m *OrgDomain) XXX_Size() int { - return xxx_messageInfo_OrgDomain.Size(m) -} -func (m *OrgDomain) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomain.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomain proto.InternalMessageInfo - -func (m *OrgDomain) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -func (m *OrgDomain) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *OrgDomain) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *OrgDomain) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *OrgDomain) GetVerified() bool { - if m != nil { - return m.Verified - } - return false -} - -func (m *OrgDomain) GetPrimary() bool { - if m != nil { - return m.Primary - } - return false -} - -func (m *OrgDomain) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type OrgDomainView struct { - OrgId string `protobuf:"bytes,1,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain,omitempty"` - Verified bool `protobuf:"varint,5,opt,name=verified,proto3" json:"verified,omitempty"` - Primary bool `protobuf:"varint,6,opt,name=primary,proto3" json:"primary,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - ValidationType OrgDomainValidationType `protobuf:"varint,8,opt,name=validation_type,json=validationType,proto3,enum=caos.zitadel.management.api.v1.OrgDomainValidationType" json:"validation_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomainView) Reset() { *m = OrgDomainView{} } -func (m *OrgDomainView) String() string { return proto.CompactTextString(m) } -func (*OrgDomainView) ProtoMessage() {} -func (*OrgDomainView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{54} -} - -func (m *OrgDomainView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomainView.Unmarshal(m, b) -} -func (m *OrgDomainView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomainView.Marshal(b, m, deterministic) -} -func (m *OrgDomainView) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomainView.Merge(m, src) -} -func (m *OrgDomainView) XXX_Size() int { - return xxx_messageInfo_OrgDomainView.Size(m) -} -func (m *OrgDomainView) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomainView.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomainView proto.InternalMessageInfo - -func (m *OrgDomainView) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -func (m *OrgDomainView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *OrgDomainView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *OrgDomainView) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *OrgDomainView) GetVerified() bool { - if m != nil { - return m.Verified - } - return false -} - -func (m *OrgDomainView) GetPrimary() bool { - if m != nil { - return m.Primary - } - return false -} - -func (m *OrgDomainView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *OrgDomainView) GetValidationType() OrgDomainValidationType { - if m != nil { - return m.ValidationType - } - return OrgDomainValidationType_ORGDOMAINVALIDATIONTYPE_UNSPECIFIED -} - -type AddOrgDomainRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddOrgDomainRequest) Reset() { *m = AddOrgDomainRequest{} } -func (m *AddOrgDomainRequest) String() string { return proto.CompactTextString(m) } -func (*AddOrgDomainRequest) ProtoMessage() {} -func (*AddOrgDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{55} -} - -func (m *AddOrgDomainRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddOrgDomainRequest.Unmarshal(m, b) -} -func (m *AddOrgDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddOrgDomainRequest.Marshal(b, m, deterministic) -} -func (m *AddOrgDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddOrgDomainRequest.Merge(m, src) -} -func (m *AddOrgDomainRequest) XXX_Size() int { - return xxx_messageInfo_AddOrgDomainRequest.Size(m) -} -func (m *AddOrgDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddOrgDomainRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AddOrgDomainRequest proto.InternalMessageInfo - -func (m *AddOrgDomainRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -type OrgDomainValidationRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - Type OrgDomainValidationType `protobuf:"varint,2,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.OrgDomainValidationType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomainValidationRequest) Reset() { *m = OrgDomainValidationRequest{} } -func (m *OrgDomainValidationRequest) String() string { return proto.CompactTextString(m) } -func (*OrgDomainValidationRequest) ProtoMessage() {} -func (*OrgDomainValidationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{56} -} - -func (m *OrgDomainValidationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomainValidationRequest.Unmarshal(m, b) -} -func (m *OrgDomainValidationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomainValidationRequest.Marshal(b, m, deterministic) -} -func (m *OrgDomainValidationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomainValidationRequest.Merge(m, src) -} -func (m *OrgDomainValidationRequest) XXX_Size() int { - return xxx_messageInfo_OrgDomainValidationRequest.Size(m) -} -func (m *OrgDomainValidationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomainValidationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomainValidationRequest proto.InternalMessageInfo - -func (m *OrgDomainValidationRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *OrgDomainValidationRequest) GetType() OrgDomainValidationType { - if m != nil { - return m.Type - } - return OrgDomainValidationType_ORGDOMAINVALIDATIONTYPE_UNSPECIFIED -} - -type OrgDomainValidationResponse struct { - Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomainValidationResponse) Reset() { *m = OrgDomainValidationResponse{} } -func (m *OrgDomainValidationResponse) String() string { return proto.CompactTextString(m) } -func (*OrgDomainValidationResponse) ProtoMessage() {} -func (*OrgDomainValidationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{57} -} - -func (m *OrgDomainValidationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomainValidationResponse.Unmarshal(m, b) -} -func (m *OrgDomainValidationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomainValidationResponse.Marshal(b, m, deterministic) -} -func (m *OrgDomainValidationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomainValidationResponse.Merge(m, src) -} -func (m *OrgDomainValidationResponse) XXX_Size() int { - return xxx_messageInfo_OrgDomainValidationResponse.Size(m) -} -func (m *OrgDomainValidationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomainValidationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomainValidationResponse proto.InternalMessageInfo - -func (m *OrgDomainValidationResponse) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *OrgDomainValidationResponse) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -type ValidateOrgDomainRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidateOrgDomainRequest) Reset() { *m = ValidateOrgDomainRequest{} } -func (m *ValidateOrgDomainRequest) String() string { return proto.CompactTextString(m) } -func (*ValidateOrgDomainRequest) ProtoMessage() {} -func (*ValidateOrgDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{58} -} - -func (m *ValidateOrgDomainRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ValidateOrgDomainRequest.Unmarshal(m, b) -} -func (m *ValidateOrgDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ValidateOrgDomainRequest.Marshal(b, m, deterministic) -} -func (m *ValidateOrgDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidateOrgDomainRequest.Merge(m, src) -} -func (m *ValidateOrgDomainRequest) XXX_Size() int { - return xxx_messageInfo_ValidateOrgDomainRequest.Size(m) -} -func (m *ValidateOrgDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ValidateOrgDomainRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidateOrgDomainRequest proto.InternalMessageInfo - -func (m *ValidateOrgDomainRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -type PrimaryOrgDomainRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrimaryOrgDomainRequest) Reset() { *m = PrimaryOrgDomainRequest{} } -func (m *PrimaryOrgDomainRequest) String() string { return proto.CompactTextString(m) } -func (*PrimaryOrgDomainRequest) ProtoMessage() {} -func (*PrimaryOrgDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{59} -} - -func (m *PrimaryOrgDomainRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrimaryOrgDomainRequest.Unmarshal(m, b) -} -func (m *PrimaryOrgDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrimaryOrgDomainRequest.Marshal(b, m, deterministic) -} -func (m *PrimaryOrgDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrimaryOrgDomainRequest.Merge(m, src) -} -func (m *PrimaryOrgDomainRequest) XXX_Size() int { - return xxx_messageInfo_PrimaryOrgDomainRequest.Size(m) -} -func (m *PrimaryOrgDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PrimaryOrgDomainRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PrimaryOrgDomainRequest proto.InternalMessageInfo - -func (m *PrimaryOrgDomainRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -type RemoveOrgDomainRequest struct { - Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveOrgDomainRequest) Reset() { *m = RemoveOrgDomainRequest{} } -func (m *RemoveOrgDomainRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveOrgDomainRequest) ProtoMessage() {} -func (*RemoveOrgDomainRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{60} -} - -func (m *RemoveOrgDomainRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveOrgDomainRequest.Unmarshal(m, b) -} -func (m *RemoveOrgDomainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveOrgDomainRequest.Marshal(b, m, deterministic) -} -func (m *RemoveOrgDomainRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveOrgDomainRequest.Merge(m, src) -} -func (m *RemoveOrgDomainRequest) XXX_Size() int { - return xxx_messageInfo_RemoveOrgDomainRequest.Size(m) -} -func (m *RemoveOrgDomainRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveOrgDomainRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveOrgDomainRequest proto.InternalMessageInfo - -func (m *RemoveOrgDomainRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -type OrgDomainSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*OrgDomainView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomainSearchResponse) Reset() { *m = OrgDomainSearchResponse{} } -func (m *OrgDomainSearchResponse) String() string { return proto.CompactTextString(m) } -func (*OrgDomainSearchResponse) ProtoMessage() {} -func (*OrgDomainSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{61} -} - -func (m *OrgDomainSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomainSearchResponse.Unmarshal(m, b) -} -func (m *OrgDomainSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomainSearchResponse.Marshal(b, m, deterministic) -} -func (m *OrgDomainSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomainSearchResponse.Merge(m, src) -} -func (m *OrgDomainSearchResponse) XXX_Size() int { - return xxx_messageInfo_OrgDomainSearchResponse.Size(m) -} -func (m *OrgDomainSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomainSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomainSearchResponse proto.InternalMessageInfo - -func (m *OrgDomainSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *OrgDomainSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *OrgDomainSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *OrgDomainSearchResponse) GetResult() []*OrgDomainView { - if m != nil { - return m.Result - } - return nil -} - -func (m *OrgDomainSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *OrgDomainSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type OrgDomainSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*OrgDomainSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomainSearchRequest) Reset() { *m = OrgDomainSearchRequest{} } -func (m *OrgDomainSearchRequest) String() string { return proto.CompactTextString(m) } -func (*OrgDomainSearchRequest) ProtoMessage() {} -func (*OrgDomainSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{62} -} - -func (m *OrgDomainSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomainSearchRequest.Unmarshal(m, b) -} -func (m *OrgDomainSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomainSearchRequest.Marshal(b, m, deterministic) -} -func (m *OrgDomainSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomainSearchRequest.Merge(m, src) -} -func (m *OrgDomainSearchRequest) XXX_Size() int { - return xxx_messageInfo_OrgDomainSearchRequest.Size(m) -} -func (m *OrgDomainSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomainSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomainSearchRequest proto.InternalMessageInfo - -func (m *OrgDomainSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *OrgDomainSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *OrgDomainSearchRequest) GetQueries() []*OrgDomainSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type OrgDomainSearchQuery struct { - Key OrgDomainSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.OrgDomainSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgDomainSearchQuery) Reset() { *m = OrgDomainSearchQuery{} } -func (m *OrgDomainSearchQuery) String() string { return proto.CompactTextString(m) } -func (*OrgDomainSearchQuery) ProtoMessage() {} -func (*OrgDomainSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{63} -} - -func (m *OrgDomainSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgDomainSearchQuery.Unmarshal(m, b) -} -func (m *OrgDomainSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgDomainSearchQuery.Marshal(b, m, deterministic) -} -func (m *OrgDomainSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgDomainSearchQuery.Merge(m, src) -} -func (m *OrgDomainSearchQuery) XXX_Size() int { - return xxx_messageInfo_OrgDomainSearchQuery.Size(m) -} -func (m *OrgDomainSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_OrgDomainSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgDomainSearchQuery proto.InternalMessageInfo - -func (m *OrgDomainSearchQuery) GetKey() OrgDomainSearchKey { - if m != nil { - return m.Key - } - return OrgDomainSearchKey_ORGDOMAINSEARCHKEY_UNSPECIFIED -} - -func (m *OrgDomainSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *OrgDomainSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type OrgMemberRoles struct { - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgMemberRoles) Reset() { *m = OrgMemberRoles{} } -func (m *OrgMemberRoles) String() string { return proto.CompactTextString(m) } -func (*OrgMemberRoles) ProtoMessage() {} -func (*OrgMemberRoles) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{64} -} - -func (m *OrgMemberRoles) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgMemberRoles.Unmarshal(m, b) -} -func (m *OrgMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgMemberRoles.Marshal(b, m, deterministic) -} -func (m *OrgMemberRoles) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgMemberRoles.Merge(m, src) -} -func (m *OrgMemberRoles) XXX_Size() int { - return xxx_messageInfo_OrgMemberRoles.Size(m) -} -func (m *OrgMemberRoles) XXX_DiscardUnknown() { - xxx_messageInfo_OrgMemberRoles.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgMemberRoles proto.InternalMessageInfo - -func (m *OrgMemberRoles) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type OrgMember struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgMember) Reset() { *m = OrgMember{} } -func (m *OrgMember) String() string { return proto.CompactTextString(m) } -func (*OrgMember) ProtoMessage() {} -func (*OrgMember) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{65} -} - -func (m *OrgMember) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgMember.Unmarshal(m, b) -} -func (m *OrgMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgMember.Marshal(b, m, deterministic) -} -func (m *OrgMember) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgMember.Merge(m, src) -} -func (m *OrgMember) XXX_Size() int { - return xxx_messageInfo_OrgMember.Size(m) -} -func (m *OrgMember) XXX_DiscardUnknown() { - xxx_messageInfo_OrgMember.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgMember proto.InternalMessageInfo - -func (m *OrgMember) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *OrgMember) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *OrgMember) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *OrgMember) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *OrgMember) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type AddOrgMemberRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddOrgMemberRequest) Reset() { *m = AddOrgMemberRequest{} } -func (m *AddOrgMemberRequest) String() string { return proto.CompactTextString(m) } -func (*AddOrgMemberRequest) ProtoMessage() {} -func (*AddOrgMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{66} -} - -func (m *AddOrgMemberRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddOrgMemberRequest.Unmarshal(m, b) -} -func (m *AddOrgMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddOrgMemberRequest.Marshal(b, m, deterministic) -} -func (m *AddOrgMemberRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddOrgMemberRequest.Merge(m, src) -} -func (m *AddOrgMemberRequest) XXX_Size() int { - return xxx_messageInfo_AddOrgMemberRequest.Size(m) -} -func (m *AddOrgMemberRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddOrgMemberRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AddOrgMemberRequest proto.InternalMessageInfo - -func (m *AddOrgMemberRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *AddOrgMemberRequest) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ChangeOrgMemberRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ChangeOrgMemberRequest) Reset() { *m = ChangeOrgMemberRequest{} } -func (m *ChangeOrgMemberRequest) String() string { return proto.CompactTextString(m) } -func (*ChangeOrgMemberRequest) ProtoMessage() {} -func (*ChangeOrgMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{67} -} - -func (m *ChangeOrgMemberRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ChangeOrgMemberRequest.Unmarshal(m, b) -} -func (m *ChangeOrgMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ChangeOrgMemberRequest.Marshal(b, m, deterministic) -} -func (m *ChangeOrgMemberRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ChangeOrgMemberRequest.Merge(m, src) -} -func (m *ChangeOrgMemberRequest) XXX_Size() int { - return xxx_messageInfo_ChangeOrgMemberRequest.Size(m) -} -func (m *ChangeOrgMemberRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ChangeOrgMemberRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ChangeOrgMemberRequest proto.InternalMessageInfo - -func (m *ChangeOrgMemberRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ChangeOrgMemberRequest) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type RemoveOrgMemberRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveOrgMemberRequest) Reset() { *m = RemoveOrgMemberRequest{} } -func (m *RemoveOrgMemberRequest) String() string { return proto.CompactTextString(m) } -func (*RemoveOrgMemberRequest) ProtoMessage() {} -func (*RemoveOrgMemberRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{68} -} - -func (m *RemoveOrgMemberRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RemoveOrgMemberRequest.Unmarshal(m, b) -} -func (m *RemoveOrgMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RemoveOrgMemberRequest.Marshal(b, m, deterministic) -} -func (m *RemoveOrgMemberRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveOrgMemberRequest.Merge(m, src) -} -func (m *RemoveOrgMemberRequest) XXX_Size() int { - return xxx_messageInfo_RemoveOrgMemberRequest.Size(m) -} -func (m *RemoveOrgMemberRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveOrgMemberRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveOrgMemberRequest proto.InternalMessageInfo - -func (m *RemoveOrgMemberRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type OrgMemberSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*OrgMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgMemberSearchResponse) Reset() { *m = OrgMemberSearchResponse{} } -func (m *OrgMemberSearchResponse) String() string { return proto.CompactTextString(m) } -func (*OrgMemberSearchResponse) ProtoMessage() {} -func (*OrgMemberSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{69} -} - -func (m *OrgMemberSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgMemberSearchResponse.Unmarshal(m, b) -} -func (m *OrgMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgMemberSearchResponse.Marshal(b, m, deterministic) -} -func (m *OrgMemberSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgMemberSearchResponse.Merge(m, src) -} -func (m *OrgMemberSearchResponse) XXX_Size() int { - return xxx_messageInfo_OrgMemberSearchResponse.Size(m) -} -func (m *OrgMemberSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OrgMemberSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgMemberSearchResponse proto.InternalMessageInfo - -func (m *OrgMemberSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *OrgMemberSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *OrgMemberSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *OrgMemberSearchResponse) GetResult() []*OrgMemberView { - if m != nil { - return m.Result - } - return nil -} - -func (m *OrgMemberSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *OrgMemberSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type OrgMemberView struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - UserName string `protobuf:"bytes,6,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,8,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,9,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgMemberView) Reset() { *m = OrgMemberView{} } -func (m *OrgMemberView) String() string { return proto.CompactTextString(m) } -func (*OrgMemberView) ProtoMessage() {} -func (*OrgMemberView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{70} -} - -func (m *OrgMemberView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgMemberView.Unmarshal(m, b) -} -func (m *OrgMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgMemberView.Marshal(b, m, deterministic) -} -func (m *OrgMemberView) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgMemberView.Merge(m, src) -} -func (m *OrgMemberView) XXX_Size() int { - return xxx_messageInfo_OrgMemberView.Size(m) -} -func (m *OrgMemberView) XXX_DiscardUnknown() { - xxx_messageInfo_OrgMemberView.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgMemberView proto.InternalMessageInfo - -func (m *OrgMemberView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *OrgMemberView) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *OrgMemberView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *OrgMemberView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *OrgMemberView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *OrgMemberView) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *OrgMemberView) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *OrgMemberView) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *OrgMemberView) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *OrgMemberView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -type OrgMemberSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*OrgMemberSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgMemberSearchRequest) Reset() { *m = OrgMemberSearchRequest{} } -func (m *OrgMemberSearchRequest) String() string { return proto.CompactTextString(m) } -func (*OrgMemberSearchRequest) ProtoMessage() {} -func (*OrgMemberSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{71} -} - -func (m *OrgMemberSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgMemberSearchRequest.Unmarshal(m, b) -} -func (m *OrgMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgMemberSearchRequest.Marshal(b, m, deterministic) -} -func (m *OrgMemberSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgMemberSearchRequest.Merge(m, src) -} -func (m *OrgMemberSearchRequest) XXX_Size() int { - return xxx_messageInfo_OrgMemberSearchRequest.Size(m) -} -func (m *OrgMemberSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OrgMemberSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgMemberSearchRequest proto.InternalMessageInfo - -func (m *OrgMemberSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *OrgMemberSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *OrgMemberSearchRequest) GetQueries() []*OrgMemberSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type OrgMemberSearchQuery struct { - Key OrgMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.OrgMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OrgMemberSearchQuery) Reset() { *m = OrgMemberSearchQuery{} } -func (m *OrgMemberSearchQuery) String() string { return proto.CompactTextString(m) } -func (*OrgMemberSearchQuery) ProtoMessage() {} -func (*OrgMemberSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{72} -} - -func (m *OrgMemberSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OrgMemberSearchQuery.Unmarshal(m, b) -} -func (m *OrgMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OrgMemberSearchQuery.Marshal(b, m, deterministic) -} -func (m *OrgMemberSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_OrgMemberSearchQuery.Merge(m, src) -} -func (m *OrgMemberSearchQuery) XXX_Size() int { - return xxx_messageInfo_OrgMemberSearchQuery.Size(m) -} -func (m *OrgMemberSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_OrgMemberSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_OrgMemberSearchQuery proto.InternalMessageInfo - -func (m *OrgMemberSearchQuery) GetKey() OrgMemberSearchKey { - if m != nil { - return m.Key - } - return OrgMemberSearchKey_ORGMEMBERSEARCHKEY_UNSPECIFIED -} - -func (m *OrgMemberSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *OrgMemberSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type ProjectCreateRequest struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ProjectRoleAssertion bool `protobuf:"varint,2,opt,name=project_role_assertion,json=projectRoleAssertion,proto3" json:"project_role_assertion,omitempty"` - ProjectRoleCheck bool `protobuf:"varint,3,opt,name=project_role_check,json=projectRoleCheck,proto3" json:"project_role_check,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectCreateRequest) Reset() { *m = ProjectCreateRequest{} } -func (m *ProjectCreateRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectCreateRequest) ProtoMessage() {} -func (*ProjectCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{73} -} - -func (m *ProjectCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectCreateRequest.Unmarshal(m, b) -} -func (m *ProjectCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectCreateRequest.Marshal(b, m, deterministic) -} -func (m *ProjectCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectCreateRequest.Merge(m, src) -} -func (m *ProjectCreateRequest) XXX_Size() int { - return xxx_messageInfo_ProjectCreateRequest.Size(m) -} -func (m *ProjectCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectCreateRequest proto.InternalMessageInfo - -func (m *ProjectCreateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ProjectCreateRequest) GetProjectRoleAssertion() bool { - if m != nil { - return m.ProjectRoleAssertion - } - return false -} - -func (m *ProjectCreateRequest) GetProjectRoleCheck() bool { - if m != nil { - return m.ProjectRoleCheck - } - return false -} - -type ProjectUpdateRequest struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ProjectRoleAssertion bool `protobuf:"varint,3,opt,name=project_role_assertion,json=projectRoleAssertion,proto3" json:"project_role_assertion,omitempty"` - ProjectRoleCheck bool `protobuf:"varint,4,opt,name=project_role_check,json=projectRoleCheck,proto3" json:"project_role_check,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectUpdateRequest) Reset() { *m = ProjectUpdateRequest{} } -func (m *ProjectUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectUpdateRequest) ProtoMessage() {} -func (*ProjectUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{74} -} - -func (m *ProjectUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectUpdateRequest.Unmarshal(m, b) -} -func (m *ProjectUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectUpdateRequest.Marshal(b, m, deterministic) -} -func (m *ProjectUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectUpdateRequest.Merge(m, src) -} -func (m *ProjectUpdateRequest) XXX_Size() int { - return xxx_messageInfo_ProjectUpdateRequest.Size(m) -} -func (m *ProjectUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectUpdateRequest proto.InternalMessageInfo - -func (m *ProjectUpdateRequest) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectUpdateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ProjectUpdateRequest) GetProjectRoleAssertion() bool { - if m != nil { - return m.ProjectRoleAssertion - } - return false -} - -func (m *ProjectUpdateRequest) GetProjectRoleCheck() bool { - if m != nil { - return m.ProjectRoleCheck - } - return false -} - -type ProjectSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ProjectView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectSearchResponse) Reset() { *m = ProjectSearchResponse{} } -func (m *ProjectSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectSearchResponse) ProtoMessage() {} -func (*ProjectSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{75} -} - -func (m *ProjectSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectSearchResponse.Unmarshal(m, b) -} -func (m *ProjectSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectSearchResponse.Marshal(b, m, deterministic) -} -func (m *ProjectSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectSearchResponse.Merge(m, src) -} -func (m *ProjectSearchResponse) XXX_Size() int { - return xxx_messageInfo_ProjectSearchResponse.Size(m) -} -func (m *ProjectSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectSearchResponse proto.InternalMessageInfo - -func (m *ProjectSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ProjectSearchResponse) GetResult() []*ProjectView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ProjectSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ProjectSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type ProjectView struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State ProjectState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectState" json:"state,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ResourceOwner string `protobuf:"bytes,6,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - ProjectRoleAssertion bool `protobuf:"varint,8,opt,name=project_role_assertion,json=projectRoleAssertion,proto3" json:"project_role_assertion,omitempty"` - ProjectRoleCheck bool `protobuf:"varint,9,opt,name=project_role_check,json=projectRoleCheck,proto3" json:"project_role_check,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectView) Reset() { *m = ProjectView{} } -func (m *ProjectView) String() string { return proto.CompactTextString(m) } -func (*ProjectView) ProtoMessage() {} -func (*ProjectView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{76} -} - -func (m *ProjectView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectView.Unmarshal(m, b) -} -func (m *ProjectView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectView.Marshal(b, m, deterministic) -} -func (m *ProjectView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectView.Merge(m, src) -} -func (m *ProjectView) XXX_Size() int { - return xxx_messageInfo_ProjectView.Size(m) -} -func (m *ProjectView) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectView.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectView proto.InternalMessageInfo - -func (m *ProjectView) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectView) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ProjectView) GetState() ProjectState { - if m != nil { - return m.State - } - return ProjectState_PROJECTSTATE_UNSPECIFIED -} - -func (m *ProjectView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectView) GetResourceOwner() string { - if m != nil { - return m.ResourceOwner - } - return "" -} - -func (m *ProjectView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *ProjectView) GetProjectRoleAssertion() bool { - if m != nil { - return m.ProjectRoleAssertion - } - return false -} - -func (m *ProjectView) GetProjectRoleCheck() bool { - if m != nil { - return m.ProjectRoleCheck - } - return false -} - -type ProjectSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectSearchRequest) Reset() { *m = ProjectSearchRequest{} } -func (m *ProjectSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectSearchRequest) ProtoMessage() {} -func (*ProjectSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{77} -} - -func (m *ProjectSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectSearchRequest.Unmarshal(m, b) -} -func (m *ProjectSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectSearchRequest.Marshal(b, m, deterministic) -} -func (m *ProjectSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectSearchRequest.Merge(m, src) -} -func (m *ProjectSearchRequest) XXX_Size() int { - return xxx_messageInfo_ProjectSearchRequest.Size(m) -} -func (m *ProjectSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectSearchRequest proto.InternalMessageInfo - -func (m *ProjectSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectSearchRequest) GetQueries() []*ProjectSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ProjectSearchQuery struct { - Key ProjectSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectSearchQuery) Reset() { *m = ProjectSearchQuery{} } -func (m *ProjectSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ProjectSearchQuery) ProtoMessage() {} -func (*ProjectSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{78} -} - -func (m *ProjectSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectSearchQuery.Unmarshal(m, b) -} -func (m *ProjectSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectSearchQuery.Marshal(b, m, deterministic) -} -func (m *ProjectSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectSearchQuery.Merge(m, src) -} -func (m *ProjectSearchQuery) XXX_Size() int { - return xxx_messageInfo_ProjectSearchQuery.Size(m) -} -func (m *ProjectSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectSearchQuery proto.InternalMessageInfo - -func (m *ProjectSearchQuery) GetKey() ProjectSearchKey { - if m != nil { - return m.Key - } - return ProjectSearchKey_PROJECTSEARCHKEY_UNSPECIFIED -} - -func (m *ProjectSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ProjectSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type Projects struct { - Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Projects) Reset() { *m = Projects{} } -func (m *Projects) String() string { return proto.CompactTextString(m) } -func (*Projects) ProtoMessage() {} -func (*Projects) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{79} -} - -func (m *Projects) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Projects.Unmarshal(m, b) -} -func (m *Projects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Projects.Marshal(b, m, deterministic) -} -func (m *Projects) XXX_Merge(src proto.Message) { - xxx_messageInfo_Projects.Merge(m, src) -} -func (m *Projects) XXX_Size() int { - return xxx_messageInfo_Projects.Size(m) -} -func (m *Projects) XXX_DiscardUnknown() { - xxx_messageInfo_Projects.DiscardUnknown(m) -} - -var xxx_messageInfo_Projects proto.InternalMessageInfo - -func (m *Projects) GetProjects() []*Project { - if m != nil { - return m.Projects - } - return nil -} - -type Project struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State ProjectState `protobuf:"varint,3,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectState" json:"state,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` - ProjectRoleAssertion bool `protobuf:"varint,7,opt,name=project_role_assertion,json=projectRoleAssertion,proto3" json:"project_role_assertion,omitempty"` - ProjectRoleCheck bool `protobuf:"varint,8,opt,name=project_role_check,json=projectRoleCheck,proto3" json:"project_role_check,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Project) Reset() { *m = Project{} } -func (m *Project) String() string { return proto.CompactTextString(m) } -func (*Project) ProtoMessage() {} -func (*Project) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{80} -} - -func (m *Project) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Project.Unmarshal(m, b) -} -func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Project.Marshal(b, m, deterministic) -} -func (m *Project) XXX_Merge(src proto.Message) { - xxx_messageInfo_Project.Merge(m, src) -} -func (m *Project) XXX_Size() int { - return xxx_messageInfo_Project.Size(m) -} -func (m *Project) XXX_DiscardUnknown() { - xxx_messageInfo_Project.DiscardUnknown(m) -} - -var xxx_messageInfo_Project proto.InternalMessageInfo - -func (m *Project) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Project) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Project) GetState() ProjectState { - if m != nil { - return m.State - } - return ProjectState_PROJECTSTATE_UNSPECIFIED -} - -func (m *Project) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *Project) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *Project) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *Project) GetProjectRoleAssertion() bool { - if m != nil { - return m.ProjectRoleAssertion - } - return false -} - -func (m *Project) GetProjectRoleCheck() bool { - if m != nil { - return m.ProjectRoleCheck - } - return false -} - -type ProjectMemberRoles struct { - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberRoles) Reset() { *m = ProjectMemberRoles{} } -func (m *ProjectMemberRoles) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberRoles) ProtoMessage() {} -func (*ProjectMemberRoles) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{81} -} - -func (m *ProjectMemberRoles) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberRoles.Unmarshal(m, b) -} -func (m *ProjectMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberRoles.Marshal(b, m, deterministic) -} -func (m *ProjectMemberRoles) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberRoles.Merge(m, src) -} -func (m *ProjectMemberRoles) XXX_Size() int { - return xxx_messageInfo_ProjectMemberRoles.Size(m) -} -func (m *ProjectMemberRoles) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberRoles.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberRoles proto.InternalMessageInfo - -func (m *ProjectMemberRoles) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ProjectMember struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMember) Reset() { *m = ProjectMember{} } -func (m *ProjectMember) String() string { return proto.CompactTextString(m) } -func (*ProjectMember) ProtoMessage() {} -func (*ProjectMember) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{82} -} - -func (m *ProjectMember) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMember.Unmarshal(m, b) -} -func (m *ProjectMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMember.Marshal(b, m, deterministic) -} -func (m *ProjectMember) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMember.Merge(m, src) -} -func (m *ProjectMember) XXX_Size() int { - return xxx_messageInfo_ProjectMember.Size(m) -} -func (m *ProjectMember) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMember.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMember proto.InternalMessageInfo - -func (m *ProjectMember) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectMember) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *ProjectMember) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectMember) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectMember) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type ProjectMemberAdd struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberAdd) Reset() { *m = ProjectMemberAdd{} } -func (m *ProjectMemberAdd) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberAdd) ProtoMessage() {} -func (*ProjectMemberAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{83} -} - -func (m *ProjectMemberAdd) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberAdd.Unmarshal(m, b) -} -func (m *ProjectMemberAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberAdd.Marshal(b, m, deterministic) -} -func (m *ProjectMemberAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberAdd.Merge(m, src) -} -func (m *ProjectMemberAdd) XXX_Size() int { - return xxx_messageInfo_ProjectMemberAdd.Size(m) -} -func (m *ProjectMemberAdd) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberAdd proto.InternalMessageInfo - -func (m *ProjectMemberAdd) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectMemberAdd) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectMemberAdd) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ProjectMemberChange struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberChange) Reset() { *m = ProjectMemberChange{} } -func (m *ProjectMemberChange) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberChange) ProtoMessage() {} -func (*ProjectMemberChange) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{84} -} - -func (m *ProjectMemberChange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberChange.Unmarshal(m, b) -} -func (m *ProjectMemberChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberChange.Marshal(b, m, deterministic) -} -func (m *ProjectMemberChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberChange.Merge(m, src) -} -func (m *ProjectMemberChange) XXX_Size() int { - return xxx_messageInfo_ProjectMemberChange.Size(m) -} -func (m *ProjectMemberChange) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberChange.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberChange proto.InternalMessageInfo - -func (m *ProjectMemberChange) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectMemberChange) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectMemberChange) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ProjectMemberRemove struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberRemove) Reset() { *m = ProjectMemberRemove{} } -func (m *ProjectMemberRemove) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberRemove) ProtoMessage() {} -func (*ProjectMemberRemove) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{85} -} - -func (m *ProjectMemberRemove) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberRemove.Unmarshal(m, b) -} -func (m *ProjectMemberRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberRemove.Marshal(b, m, deterministic) -} -func (m *ProjectMemberRemove) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberRemove.Merge(m, src) -} -func (m *ProjectMemberRemove) XXX_Size() int { - return xxx_messageInfo_ProjectMemberRemove.Size(m) -} -func (m *ProjectMemberRemove) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberRemove.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberRemove proto.InternalMessageInfo - -func (m *ProjectMemberRemove) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectMemberRemove) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type ProjectRoleAdd struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleAdd) Reset() { *m = ProjectRoleAdd{} } -func (m *ProjectRoleAdd) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleAdd) ProtoMessage() {} -func (*ProjectRoleAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{86} -} - -func (m *ProjectRoleAdd) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleAdd.Unmarshal(m, b) -} -func (m *ProjectRoleAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleAdd.Marshal(b, m, deterministic) -} -func (m *ProjectRoleAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleAdd.Merge(m, src) -} -func (m *ProjectRoleAdd) XXX_Size() int { - return xxx_messageInfo_ProjectRoleAdd.Size(m) -} -func (m *ProjectRoleAdd) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleAdd proto.InternalMessageInfo - -func (m *ProjectRoleAdd) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectRoleAdd) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *ProjectRoleAdd) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *ProjectRoleAdd) GetGroup() string { - if m != nil { - return m.Group - } - return "" -} - -type ProjectRoleAddBulk struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectRoles []*ProjectRoleAdd `protobuf:"bytes,2,rep,name=project_roles,json=projectRoles,proto3" json:"project_roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleAddBulk) Reset() { *m = ProjectRoleAddBulk{} } -func (m *ProjectRoleAddBulk) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleAddBulk) ProtoMessage() {} -func (*ProjectRoleAddBulk) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{87} -} - -func (m *ProjectRoleAddBulk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleAddBulk.Unmarshal(m, b) -} -func (m *ProjectRoleAddBulk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleAddBulk.Marshal(b, m, deterministic) -} -func (m *ProjectRoleAddBulk) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleAddBulk.Merge(m, src) -} -func (m *ProjectRoleAddBulk) XXX_Size() int { - return xxx_messageInfo_ProjectRoleAddBulk.Size(m) -} -func (m *ProjectRoleAddBulk) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleAddBulk.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleAddBulk proto.InternalMessageInfo - -func (m *ProjectRoleAddBulk) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectRoleAddBulk) GetProjectRoles() []*ProjectRoleAdd { - if m != nil { - return m.ProjectRoles - } - return nil -} - -type ProjectRoleChange struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleChange) Reset() { *m = ProjectRoleChange{} } -func (m *ProjectRoleChange) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleChange) ProtoMessage() {} -func (*ProjectRoleChange) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{88} -} - -func (m *ProjectRoleChange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleChange.Unmarshal(m, b) -} -func (m *ProjectRoleChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleChange.Marshal(b, m, deterministic) -} -func (m *ProjectRoleChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleChange.Merge(m, src) -} -func (m *ProjectRoleChange) XXX_Size() int { - return xxx_messageInfo_ProjectRoleChange.Size(m) -} -func (m *ProjectRoleChange) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleChange.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleChange proto.InternalMessageInfo - -func (m *ProjectRoleChange) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectRoleChange) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *ProjectRoleChange) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *ProjectRoleChange) GetGroup() string { - if m != nil { - return m.Group - } - return "" -} - -type ProjectRole struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRole) Reset() { *m = ProjectRole{} } -func (m *ProjectRole) String() string { return proto.CompactTextString(m) } -func (*ProjectRole) ProtoMessage() {} -func (*ProjectRole) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{89} -} - -func (m *ProjectRole) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRole.Unmarshal(m, b) -} -func (m *ProjectRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRole.Marshal(b, m, deterministic) -} -func (m *ProjectRole) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRole.Merge(m, src) -} -func (m *ProjectRole) XXX_Size() int { - return xxx_messageInfo_ProjectRole.Size(m) -} -func (m *ProjectRole) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRole.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRole proto.InternalMessageInfo - -func (m *ProjectRole) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectRole) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *ProjectRole) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *ProjectRole) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectRole) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectRole) GetGroup() string { - if m != nil { - return m.Group - } - return "" -} - -func (m *ProjectRole) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type ProjectRoleView struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Group string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleView) Reset() { *m = ProjectRoleView{} } -func (m *ProjectRoleView) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleView) ProtoMessage() {} -func (*ProjectRoleView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{90} -} - -func (m *ProjectRoleView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleView.Unmarshal(m, b) -} -func (m *ProjectRoleView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleView.Marshal(b, m, deterministic) -} -func (m *ProjectRoleView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleView.Merge(m, src) -} -func (m *ProjectRoleView) XXX_Size() int { - return xxx_messageInfo_ProjectRoleView.Size(m) -} -func (m *ProjectRoleView) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleView.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleView proto.InternalMessageInfo - -func (m *ProjectRoleView) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectRoleView) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *ProjectRoleView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *ProjectRoleView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectRoleView) GetGroup() string { - if m != nil { - return m.Group - } - return "" -} - -func (m *ProjectRoleView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type ProjectRoleRemove struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleRemove) Reset() { *m = ProjectRoleRemove{} } -func (m *ProjectRoleRemove) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleRemove) ProtoMessage() {} -func (*ProjectRoleRemove) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{91} -} - -func (m *ProjectRoleRemove) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleRemove.Unmarshal(m, b) -} -func (m *ProjectRoleRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleRemove.Marshal(b, m, deterministic) -} -func (m *ProjectRoleRemove) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleRemove.Merge(m, src) -} -func (m *ProjectRoleRemove) XXX_Size() int { - return xxx_messageInfo_ProjectRoleRemove.Size(m) -} -func (m *ProjectRoleRemove) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleRemove.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleRemove proto.InternalMessageInfo - -func (m *ProjectRoleRemove) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectRoleRemove) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -type ProjectRoleSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ProjectRoleView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleSearchResponse) Reset() { *m = ProjectRoleSearchResponse{} } -func (m *ProjectRoleSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleSearchResponse) ProtoMessage() {} -func (*ProjectRoleSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{92} -} - -func (m *ProjectRoleSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleSearchResponse.Unmarshal(m, b) -} -func (m *ProjectRoleSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleSearchResponse.Marshal(b, m, deterministic) -} -func (m *ProjectRoleSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleSearchResponse.Merge(m, src) -} -func (m *ProjectRoleSearchResponse) XXX_Size() int { - return xxx_messageInfo_ProjectRoleSearchResponse.Size(m) -} -func (m *ProjectRoleSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleSearchResponse proto.InternalMessageInfo - -func (m *ProjectRoleSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectRoleSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectRoleSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ProjectRoleSearchResponse) GetResult() []*ProjectRoleView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ProjectRoleSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ProjectRoleSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type ProjectRoleSearchRequest struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectRoleSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleSearchRequest) Reset() { *m = ProjectRoleSearchRequest{} } -func (m *ProjectRoleSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleSearchRequest) ProtoMessage() {} -func (*ProjectRoleSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{93} -} - -func (m *ProjectRoleSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleSearchRequest.Unmarshal(m, b) -} -func (m *ProjectRoleSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleSearchRequest.Marshal(b, m, deterministic) -} -func (m *ProjectRoleSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleSearchRequest.Merge(m, src) -} -func (m *ProjectRoleSearchRequest) XXX_Size() int { - return xxx_messageInfo_ProjectRoleSearchRequest.Size(m) -} -func (m *ProjectRoleSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleSearchRequest proto.InternalMessageInfo - -func (m *ProjectRoleSearchRequest) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectRoleSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectRoleSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectRoleSearchRequest) GetQueries() []*ProjectRoleSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ProjectRoleSearchQuery struct { - Key ProjectRoleSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectRoleSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRoleSearchQuery) Reset() { *m = ProjectRoleSearchQuery{} } -func (m *ProjectRoleSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ProjectRoleSearchQuery) ProtoMessage() {} -func (*ProjectRoleSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{94} -} - -func (m *ProjectRoleSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRoleSearchQuery.Unmarshal(m, b) -} -func (m *ProjectRoleSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRoleSearchQuery.Marshal(b, m, deterministic) -} -func (m *ProjectRoleSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRoleSearchQuery.Merge(m, src) -} -func (m *ProjectRoleSearchQuery) XXX_Size() int { - return xxx_messageInfo_ProjectRoleSearchQuery.Size(m) -} -func (m *ProjectRoleSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRoleSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRoleSearchQuery proto.InternalMessageInfo - -func (m *ProjectRoleSearchQuery) GetKey() ProjectRoleSearchKey { - if m != nil { - return m.Key - } - return ProjectRoleSearchKey_PROJECTROLESEARCHKEY_UNSPECIFIED -} - -func (m *ProjectRoleSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ProjectRoleSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type ProjectMemberView struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` - DisplayName string `protobuf:"bytes,11,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberView) Reset() { *m = ProjectMemberView{} } -func (m *ProjectMemberView) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberView) ProtoMessage() {} -func (*ProjectMemberView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{95} -} - -func (m *ProjectMemberView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberView.Unmarshal(m, b) -} -func (m *ProjectMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberView.Marshal(b, m, deterministic) -} -func (m *ProjectMemberView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberView.Merge(m, src) -} -func (m *ProjectMemberView) XXX_Size() int { - return xxx_messageInfo_ProjectMemberView.Size(m) -} -func (m *ProjectMemberView) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberView.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberView proto.InternalMessageInfo - -func (m *ProjectMemberView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectMemberView) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *ProjectMemberView) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *ProjectMemberView) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *ProjectMemberView) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *ProjectMemberView) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *ProjectMemberView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectMemberView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectMemberView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *ProjectMemberView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -type ProjectMemberSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ProjectMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberSearchResponse) Reset() { *m = ProjectMemberSearchResponse{} } -func (m *ProjectMemberSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberSearchResponse) ProtoMessage() {} -func (*ProjectMemberSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{96} -} - -func (m *ProjectMemberSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberSearchResponse.Unmarshal(m, b) -} -func (m *ProjectMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberSearchResponse.Marshal(b, m, deterministic) -} -func (m *ProjectMemberSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberSearchResponse.Merge(m, src) -} -func (m *ProjectMemberSearchResponse) XXX_Size() int { - return xxx_messageInfo_ProjectMemberSearchResponse.Size(m) -} -func (m *ProjectMemberSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberSearchResponse proto.InternalMessageInfo - -func (m *ProjectMemberSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectMemberSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectMemberSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ProjectMemberSearchResponse) GetResult() []*ProjectMemberView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ProjectMemberSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ProjectMemberSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type ProjectMemberSearchRequest struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectMemberSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberSearchRequest) Reset() { *m = ProjectMemberSearchRequest{} } -func (m *ProjectMemberSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberSearchRequest) ProtoMessage() {} -func (*ProjectMemberSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{97} -} - -func (m *ProjectMemberSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberSearchRequest.Unmarshal(m, b) -} -func (m *ProjectMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberSearchRequest.Marshal(b, m, deterministic) -} -func (m *ProjectMemberSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberSearchRequest.Merge(m, src) -} -func (m *ProjectMemberSearchRequest) XXX_Size() int { - return xxx_messageInfo_ProjectMemberSearchRequest.Size(m) -} -func (m *ProjectMemberSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberSearchRequest proto.InternalMessageInfo - -func (m *ProjectMemberSearchRequest) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectMemberSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectMemberSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectMemberSearchRequest) GetQueries() []*ProjectMemberSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ProjectMemberSearchQuery struct { - Key ProjectMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectMemberSearchQuery) Reset() { *m = ProjectMemberSearchQuery{} } -func (m *ProjectMemberSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ProjectMemberSearchQuery) ProtoMessage() {} -func (*ProjectMemberSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{98} -} - -func (m *ProjectMemberSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectMemberSearchQuery.Unmarshal(m, b) -} -func (m *ProjectMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectMemberSearchQuery.Marshal(b, m, deterministic) -} -func (m *ProjectMemberSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectMemberSearchQuery.Merge(m, src) -} -func (m *ProjectMemberSearchQuery) XXX_Size() int { - return xxx_messageInfo_ProjectMemberSearchQuery.Size(m) -} -func (m *ProjectMemberSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectMemberSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectMemberSearchQuery proto.InternalMessageInfo - -func (m *ProjectMemberSearchQuery) GetKey() ProjectMemberSearchKey { - if m != nil { - return m.Key - } - return ProjectMemberSearchKey_PROJECTMEMBERSEARCHKEY_UNSPECIFIED -} - -func (m *ProjectMemberSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ProjectMemberSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type Application struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State AppState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.AppState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - // Types that are valid to be assigned to AppConfig: - // *Application_OidcConfig - AppConfig isApplication_AppConfig `protobuf_oneof:"app_config"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Application) Reset() { *m = Application{} } -func (m *Application) String() string { return proto.CompactTextString(m) } -func (*Application) ProtoMessage() {} -func (*Application) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{99} -} - -func (m *Application) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Application.Unmarshal(m, b) -} -func (m *Application) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Application.Marshal(b, m, deterministic) -} -func (m *Application) XXX_Merge(src proto.Message) { - xxx_messageInfo_Application.Merge(m, src) -} -func (m *Application) XXX_Size() int { - return xxx_messageInfo_Application.Size(m) -} -func (m *Application) XXX_DiscardUnknown() { - xxx_messageInfo_Application.DiscardUnknown(m) -} - -var xxx_messageInfo_Application proto.InternalMessageInfo - -func (m *Application) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Application) GetState() AppState { - if m != nil { - return m.State - } - return AppState_APPSTATE_UNSPECIFIED -} - -func (m *Application) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *Application) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *Application) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type isApplication_AppConfig interface { - isApplication_AppConfig() -} - -type Application_OidcConfig struct { - OidcConfig *OIDCConfig `protobuf:"bytes,8,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*Application_OidcConfig) isApplication_AppConfig() {} - -func (m *Application) GetAppConfig() isApplication_AppConfig { - if m != nil { - return m.AppConfig - } - return nil -} - -func (m *Application) GetOidcConfig() *OIDCConfig { - if x, ok := m.GetAppConfig().(*Application_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (m *Application) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Application) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Application_OidcConfig)(nil), - } -} - -type ApplicationUpdate struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationUpdate) Reset() { *m = ApplicationUpdate{} } -func (m *ApplicationUpdate) String() string { return proto.CompactTextString(m) } -func (*ApplicationUpdate) ProtoMessage() {} -func (*ApplicationUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{100} -} - -func (m *ApplicationUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationUpdate.Unmarshal(m, b) -} -func (m *ApplicationUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationUpdate.Marshal(b, m, deterministic) -} -func (m *ApplicationUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationUpdate.Merge(m, src) -} -func (m *ApplicationUpdate) XXX_Size() int { - return xxx_messageInfo_ApplicationUpdate.Size(m) -} -func (m *ApplicationUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationUpdate proto.InternalMessageInfo - -func (m *ApplicationUpdate) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ApplicationUpdate) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ApplicationUpdate) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type OIDCConfig struct { - RedirectUris []string `protobuf:"bytes,1,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` - ResponseTypes []OIDCResponseType `protobuf:"varint,2,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,3,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,4,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,6,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.api.v1.OIDCAuthMethodType" json:"auth_method_type,omitempty"` - PostLogoutRedirectUris []string `protobuf:"bytes,8,rep,name=post_logout_redirect_uris,json=postLogoutRedirectUris,proto3" json:"post_logout_redirect_uris,omitempty"` - Version OIDCVersion `protobuf:"varint,9,opt,name=version,proto3,enum=caos.zitadel.management.api.v1.OIDCVersion" json:"version,omitempty"` - NoneCompliant bool `protobuf:"varint,10,opt,name=none_compliant,json=noneCompliant,proto3" json:"none_compliant,omitempty"` - ComplianceProblems []*message.LocalizedMessage `protobuf:"bytes,11,rep,name=compliance_problems,json=complianceProblems,proto3" json:"compliance_problems,omitempty"` - DevMode bool `protobuf:"varint,12,opt,name=dev_mode,json=devMode,proto3" json:"dev_mode,omitempty"` - AccessTokenType OIDCTokenType `protobuf:"varint,13,opt,name=access_token_type,json=accessTokenType,proto3,enum=caos.zitadel.management.api.v1.OIDCTokenType" json:"access_token_type,omitempty"` - AccessTokenRoleAssertion bool `protobuf:"varint,14,opt,name=access_token_role_assertion,json=accessTokenRoleAssertion,proto3" json:"access_token_role_assertion,omitempty"` - IdTokenRoleAssertion bool `protobuf:"varint,15,opt,name=id_token_role_assertion,json=idTokenRoleAssertion,proto3" json:"id_token_role_assertion,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OIDCConfig) Reset() { *m = OIDCConfig{} } -func (m *OIDCConfig) String() string { return proto.CompactTextString(m) } -func (*OIDCConfig) ProtoMessage() {} -func (*OIDCConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{101} -} - -func (m *OIDCConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OIDCConfig.Unmarshal(m, b) -} -func (m *OIDCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OIDCConfig.Marshal(b, m, deterministic) -} -func (m *OIDCConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_OIDCConfig.Merge(m, src) -} -func (m *OIDCConfig) XXX_Size() int { - return xxx_messageInfo_OIDCConfig.Size(m) -} -func (m *OIDCConfig) XXX_DiscardUnknown() { - xxx_messageInfo_OIDCConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_OIDCConfig proto.InternalMessageInfo - -func (m *OIDCConfig) GetRedirectUris() []string { - if m != nil { - return m.RedirectUris - } - return nil -} - -func (m *OIDCConfig) GetResponseTypes() []OIDCResponseType { - if m != nil { - return m.ResponseTypes - } - return nil -} - -func (m *OIDCConfig) GetGrantTypes() []OIDCGrantType { - if m != nil { - return m.GrantTypes - } - return nil -} - -func (m *OIDCConfig) GetApplicationType() OIDCApplicationType { - if m != nil { - return m.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (m *OIDCConfig) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OIDCConfig) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -func (m *OIDCConfig) GetAuthMethodType() OIDCAuthMethodType { - if m != nil { - return m.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (m *OIDCConfig) GetPostLogoutRedirectUris() []string { - if m != nil { - return m.PostLogoutRedirectUris - } - return nil -} - -func (m *OIDCConfig) GetVersion() OIDCVersion { - if m != nil { - return m.Version - } - return OIDCVersion_OIDCV1_0 -} - -func (m *OIDCConfig) GetNoneCompliant() bool { - if m != nil { - return m.NoneCompliant - } - return false -} - -func (m *OIDCConfig) GetComplianceProblems() []*message.LocalizedMessage { - if m != nil { - return m.ComplianceProblems - } - return nil -} - -func (m *OIDCConfig) GetDevMode() bool { - if m != nil { - return m.DevMode - } - return false -} - -func (m *OIDCConfig) GetAccessTokenType() OIDCTokenType { - if m != nil { - return m.AccessTokenType - } - return OIDCTokenType_OIDCTokenType_Bearer -} - -func (m *OIDCConfig) GetAccessTokenRoleAssertion() bool { - if m != nil { - return m.AccessTokenRoleAssertion - } - return false -} - -func (m *OIDCConfig) GetIdTokenRoleAssertion() bool { - if m != nil { - return m.IdTokenRoleAssertion - } - return false -} - -type OIDCApplicationCreate struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` - ResponseTypes []OIDCResponseType `protobuf:"varint,4,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,5,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,6,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.api.v1.OIDCAuthMethodType" json:"auth_method_type,omitempty"` - PostLogoutRedirectUris []string `protobuf:"bytes,8,rep,name=post_logout_redirect_uris,json=postLogoutRedirectUris,proto3" json:"post_logout_redirect_uris,omitempty"` - Version OIDCVersion `protobuf:"varint,9,opt,name=version,proto3,enum=caos.zitadel.management.api.v1.OIDCVersion" json:"version,omitempty"` - DevMode bool `protobuf:"varint,10,opt,name=dev_mode,json=devMode,proto3" json:"dev_mode,omitempty"` - AccessTokenType OIDCTokenType `protobuf:"varint,11,opt,name=access_token_type,json=accessTokenType,proto3,enum=caos.zitadel.management.api.v1.OIDCTokenType" json:"access_token_type,omitempty"` - AccessTokenRoleAssertion bool `protobuf:"varint,12,opt,name=access_token_role_assertion,json=accessTokenRoleAssertion,proto3" json:"access_token_role_assertion,omitempty"` - IdTokenRoleAssertion bool `protobuf:"varint,13,opt,name=id_token_role_assertion,json=idTokenRoleAssertion,proto3" json:"id_token_role_assertion,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OIDCApplicationCreate) Reset() { *m = OIDCApplicationCreate{} } -func (m *OIDCApplicationCreate) String() string { return proto.CompactTextString(m) } -func (*OIDCApplicationCreate) ProtoMessage() {} -func (*OIDCApplicationCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{102} -} - -func (m *OIDCApplicationCreate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OIDCApplicationCreate.Unmarshal(m, b) -} -func (m *OIDCApplicationCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OIDCApplicationCreate.Marshal(b, m, deterministic) -} -func (m *OIDCApplicationCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_OIDCApplicationCreate.Merge(m, src) -} -func (m *OIDCApplicationCreate) XXX_Size() int { - return xxx_messageInfo_OIDCApplicationCreate.Size(m) -} -func (m *OIDCApplicationCreate) XXX_DiscardUnknown() { - xxx_messageInfo_OIDCApplicationCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_OIDCApplicationCreate proto.InternalMessageInfo - -func (m *OIDCApplicationCreate) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *OIDCApplicationCreate) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *OIDCApplicationCreate) GetRedirectUris() []string { - if m != nil { - return m.RedirectUris - } - return nil -} - -func (m *OIDCApplicationCreate) GetResponseTypes() []OIDCResponseType { - if m != nil { - return m.ResponseTypes - } - return nil -} - -func (m *OIDCApplicationCreate) GetGrantTypes() []OIDCGrantType { - if m != nil { - return m.GrantTypes - } - return nil -} - -func (m *OIDCApplicationCreate) GetApplicationType() OIDCApplicationType { - if m != nil { - return m.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (m *OIDCApplicationCreate) GetAuthMethodType() OIDCAuthMethodType { - if m != nil { - return m.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (m *OIDCApplicationCreate) GetPostLogoutRedirectUris() []string { - if m != nil { - return m.PostLogoutRedirectUris - } - return nil -} - -func (m *OIDCApplicationCreate) GetVersion() OIDCVersion { - if m != nil { - return m.Version - } - return OIDCVersion_OIDCV1_0 -} - -func (m *OIDCApplicationCreate) GetDevMode() bool { - if m != nil { - return m.DevMode - } - return false -} - -func (m *OIDCApplicationCreate) GetAccessTokenType() OIDCTokenType { - if m != nil { - return m.AccessTokenType - } - return OIDCTokenType_OIDCTokenType_Bearer -} - -func (m *OIDCApplicationCreate) GetAccessTokenRoleAssertion() bool { - if m != nil { - return m.AccessTokenRoleAssertion - } - return false -} - -func (m *OIDCApplicationCreate) GetIdTokenRoleAssertion() bool { - if m != nil { - return m.IdTokenRoleAssertion - } - return false -} - -type OIDCConfigUpdate struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - ApplicationId string `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"` - RedirectUris []string `protobuf:"bytes,3,rep,name=redirect_uris,json=redirectUris,proto3" json:"redirect_uris,omitempty"` - ResponseTypes []OIDCResponseType `protobuf:"varint,4,rep,packed,name=response_types,json=responseTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCResponseType" json:"response_types,omitempty"` - GrantTypes []OIDCGrantType `protobuf:"varint,5,rep,packed,name=grant_types,json=grantTypes,proto3,enum=caos.zitadel.management.api.v1.OIDCGrantType" json:"grant_types,omitempty"` - ApplicationType OIDCApplicationType `protobuf:"varint,6,opt,name=application_type,json=applicationType,proto3,enum=caos.zitadel.management.api.v1.OIDCApplicationType" json:"application_type,omitempty"` - AuthMethodType OIDCAuthMethodType `protobuf:"varint,7,opt,name=auth_method_type,json=authMethodType,proto3,enum=caos.zitadel.management.api.v1.OIDCAuthMethodType" json:"auth_method_type,omitempty"` - PostLogoutRedirectUris []string `protobuf:"bytes,8,rep,name=post_logout_redirect_uris,json=postLogoutRedirectUris,proto3" json:"post_logout_redirect_uris,omitempty"` - DevMode bool `protobuf:"varint,9,opt,name=dev_mode,json=devMode,proto3" json:"dev_mode,omitempty"` - AccessTokenType OIDCTokenType `protobuf:"varint,10,opt,name=access_token_type,json=accessTokenType,proto3,enum=caos.zitadel.management.api.v1.OIDCTokenType" json:"access_token_type,omitempty"` - AccessTokenRoleAssertion bool `protobuf:"varint,11,opt,name=access_token_role_assertion,json=accessTokenRoleAssertion,proto3" json:"access_token_role_assertion,omitempty"` - IdTokenRoleAssertion bool `protobuf:"varint,12,opt,name=id_token_role_assertion,json=idTokenRoleAssertion,proto3" json:"id_token_role_assertion,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OIDCConfigUpdate) Reset() { *m = OIDCConfigUpdate{} } -func (m *OIDCConfigUpdate) String() string { return proto.CompactTextString(m) } -func (*OIDCConfigUpdate) ProtoMessage() {} -func (*OIDCConfigUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{103} -} - -func (m *OIDCConfigUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OIDCConfigUpdate.Unmarshal(m, b) -} -func (m *OIDCConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OIDCConfigUpdate.Marshal(b, m, deterministic) -} -func (m *OIDCConfigUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_OIDCConfigUpdate.Merge(m, src) -} -func (m *OIDCConfigUpdate) XXX_Size() int { - return xxx_messageInfo_OIDCConfigUpdate.Size(m) -} -func (m *OIDCConfigUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_OIDCConfigUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_OIDCConfigUpdate proto.InternalMessageInfo - -func (m *OIDCConfigUpdate) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *OIDCConfigUpdate) GetApplicationId() string { - if m != nil { - return m.ApplicationId - } - return "" -} - -func (m *OIDCConfigUpdate) GetRedirectUris() []string { - if m != nil { - return m.RedirectUris - } - return nil -} - -func (m *OIDCConfigUpdate) GetResponseTypes() []OIDCResponseType { - if m != nil { - return m.ResponseTypes - } - return nil -} - -func (m *OIDCConfigUpdate) GetGrantTypes() []OIDCGrantType { - if m != nil { - return m.GrantTypes - } - return nil -} - -func (m *OIDCConfigUpdate) GetApplicationType() OIDCApplicationType { - if m != nil { - return m.ApplicationType - } - return OIDCApplicationType_OIDCAPPLICATIONTYPE_WEB -} - -func (m *OIDCConfigUpdate) GetAuthMethodType() OIDCAuthMethodType { - if m != nil { - return m.AuthMethodType - } - return OIDCAuthMethodType_OIDCAUTHMETHODTYPE_BASIC -} - -func (m *OIDCConfigUpdate) GetPostLogoutRedirectUris() []string { - if m != nil { - return m.PostLogoutRedirectUris - } - return nil -} - -func (m *OIDCConfigUpdate) GetDevMode() bool { - if m != nil { - return m.DevMode - } - return false -} - -func (m *OIDCConfigUpdate) GetAccessTokenType() OIDCTokenType { - if m != nil { - return m.AccessTokenType - } - return OIDCTokenType_OIDCTokenType_Bearer -} - -func (m *OIDCConfigUpdate) GetAccessTokenRoleAssertion() bool { - if m != nil { - return m.AccessTokenRoleAssertion - } - return false -} - -func (m *OIDCConfigUpdate) GetIdTokenRoleAssertion() bool { - if m != nil { - return m.IdTokenRoleAssertion - } - return false -} - -type ClientSecret struct { - ClientSecret string `protobuf:"bytes,1,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClientSecret) Reset() { *m = ClientSecret{} } -func (m *ClientSecret) String() string { return proto.CompactTextString(m) } -func (*ClientSecret) ProtoMessage() {} -func (*ClientSecret) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{104} -} - -func (m *ClientSecret) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClientSecret.Unmarshal(m, b) -} -func (m *ClientSecret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClientSecret.Marshal(b, m, deterministic) -} -func (m *ClientSecret) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClientSecret.Merge(m, src) -} -func (m *ClientSecret) XXX_Size() int { - return xxx_messageInfo_ClientSecret.Size(m) -} -func (m *ClientSecret) XXX_DiscardUnknown() { - xxx_messageInfo_ClientSecret.DiscardUnknown(m) -} - -var xxx_messageInfo_ClientSecret proto.InternalMessageInfo - -func (m *ClientSecret) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -type ApplicationView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State AppState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.AppState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - // Types that are valid to be assigned to AppConfig: - // *ApplicationView_OidcConfig - AppConfig isApplicationView_AppConfig `protobuf_oneof:"app_config"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationView) Reset() { *m = ApplicationView{} } -func (m *ApplicationView) String() string { return proto.CompactTextString(m) } -func (*ApplicationView) ProtoMessage() {} -func (*ApplicationView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{105} -} - -func (m *ApplicationView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationView.Unmarshal(m, b) -} -func (m *ApplicationView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationView.Marshal(b, m, deterministic) -} -func (m *ApplicationView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationView.Merge(m, src) -} -func (m *ApplicationView) XXX_Size() int { - return xxx_messageInfo_ApplicationView.Size(m) -} -func (m *ApplicationView) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationView.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationView proto.InternalMessageInfo - -func (m *ApplicationView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ApplicationView) GetState() AppState { - if m != nil { - return m.State - } - return AppState_APPSTATE_UNSPECIFIED -} - -func (m *ApplicationView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ApplicationView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ApplicationView) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -type isApplicationView_AppConfig interface { - isApplicationView_AppConfig() -} - -type ApplicationView_OidcConfig struct { - OidcConfig *OIDCConfig `protobuf:"bytes,8,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*ApplicationView_OidcConfig) isApplicationView_AppConfig() {} - -func (m *ApplicationView) GetAppConfig() isApplicationView_AppConfig { - if m != nil { - return m.AppConfig - } - return nil -} - -func (m *ApplicationView) GetOidcConfig() *OIDCConfig { - if x, ok := m.GetAppConfig().(*ApplicationView_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (m *ApplicationView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ApplicationView) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ApplicationView_OidcConfig)(nil), - } -} - -type ApplicationSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ApplicationView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationSearchResponse) Reset() { *m = ApplicationSearchResponse{} } -func (m *ApplicationSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ApplicationSearchResponse) ProtoMessage() {} -func (*ApplicationSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{106} -} - -func (m *ApplicationSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationSearchResponse.Unmarshal(m, b) -} -func (m *ApplicationSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationSearchResponse.Marshal(b, m, deterministic) -} -func (m *ApplicationSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationSearchResponse.Merge(m, src) -} -func (m *ApplicationSearchResponse) XXX_Size() int { - return xxx_messageInfo_ApplicationSearchResponse.Size(m) -} -func (m *ApplicationSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationSearchResponse proto.InternalMessageInfo - -func (m *ApplicationSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ApplicationSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ApplicationSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ApplicationSearchResponse) GetResult() []*ApplicationView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ApplicationSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ApplicationSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type ApplicationSearchRequest struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ApplicationSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationSearchRequest) Reset() { *m = ApplicationSearchRequest{} } -func (m *ApplicationSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ApplicationSearchRequest) ProtoMessage() {} -func (*ApplicationSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{107} -} - -func (m *ApplicationSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationSearchRequest.Unmarshal(m, b) -} -func (m *ApplicationSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationSearchRequest.Marshal(b, m, deterministic) -} -func (m *ApplicationSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationSearchRequest.Merge(m, src) -} -func (m *ApplicationSearchRequest) XXX_Size() int { - return xxx_messageInfo_ApplicationSearchRequest.Size(m) -} -func (m *ApplicationSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationSearchRequest proto.InternalMessageInfo - -func (m *ApplicationSearchRequest) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ApplicationSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ApplicationSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ApplicationSearchRequest) GetQueries() []*ApplicationSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ApplicationSearchQuery struct { - Key ApplicationSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ApplicationSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationSearchQuery) Reset() { *m = ApplicationSearchQuery{} } -func (m *ApplicationSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ApplicationSearchQuery) ProtoMessage() {} -func (*ApplicationSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{108} -} - -func (m *ApplicationSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApplicationSearchQuery.Unmarshal(m, b) -} -func (m *ApplicationSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApplicationSearchQuery.Marshal(b, m, deterministic) -} -func (m *ApplicationSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationSearchQuery.Merge(m, src) -} -func (m *ApplicationSearchQuery) XXX_Size() int { - return xxx_messageInfo_ApplicationSearchQuery.Size(m) -} -func (m *ApplicationSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationSearchQuery proto.InternalMessageInfo - -func (m *ApplicationSearchQuery) GetKey() ApplicationSearchKey { - if m != nil { - return m.Key - } - return ApplicationSearchKey_APPLICATIONSERACHKEY_UNSPECIFIED -} - -func (m *ApplicationSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ApplicationSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type ProjectGrant struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantedOrgId string `protobuf:"bytes,3,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` - RoleKeys []string `protobuf:"bytes,4,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State ProjectGrantState `protobuf:"varint,5,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrant) Reset() { *m = ProjectGrant{} } -func (m *ProjectGrant) String() string { return proto.CompactTextString(m) } -func (*ProjectGrant) ProtoMessage() {} -func (*ProjectGrant) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{109} -} - -func (m *ProjectGrant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrant.Unmarshal(m, b) -} -func (m *ProjectGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrant.Marshal(b, m, deterministic) -} -func (m *ProjectGrant) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrant.Merge(m, src) -} -func (m *ProjectGrant) XXX_Size() int { - return xxx_messageInfo_ProjectGrant.Size(m) -} -func (m *ProjectGrant) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrant.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrant proto.InternalMessageInfo - -func (m *ProjectGrant) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectGrant) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrant) GetGrantedOrgId() string { - if m != nil { - return m.GrantedOrgId - } - return "" -} - -func (m *ProjectGrant) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -func (m *ProjectGrant) GetState() ProjectGrantState { - if m != nil { - return m.State - } - return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED -} - -func (m *ProjectGrant) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectGrant) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectGrant) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type ProjectGrantCreate struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantedOrgId string `protobuf:"bytes,2,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantCreate) Reset() { *m = ProjectGrantCreate{} } -func (m *ProjectGrantCreate) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantCreate) ProtoMessage() {} -func (*ProjectGrantCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{110} -} - -func (m *ProjectGrantCreate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantCreate.Unmarshal(m, b) -} -func (m *ProjectGrantCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantCreate.Marshal(b, m, deterministic) -} -func (m *ProjectGrantCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantCreate.Merge(m, src) -} -func (m *ProjectGrantCreate) XXX_Size() int { - return xxx_messageInfo_ProjectGrantCreate.Size(m) -} -func (m *ProjectGrantCreate) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantCreate proto.InternalMessageInfo - -func (m *ProjectGrantCreate) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantCreate) GetGrantedOrgId() string { - if m != nil { - return m.GrantedOrgId - } - return "" -} - -func (m *ProjectGrantCreate) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -type ProjectGrantUpdate struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantUpdate) Reset() { *m = ProjectGrantUpdate{} } -func (m *ProjectGrantUpdate) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantUpdate) ProtoMessage() {} -func (*ProjectGrantUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{111} -} - -func (m *ProjectGrantUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantUpdate.Unmarshal(m, b) -} -func (m *ProjectGrantUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantUpdate.Marshal(b, m, deterministic) -} -func (m *ProjectGrantUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantUpdate.Merge(m, src) -} -func (m *ProjectGrantUpdate) XXX_Size() int { - return xxx_messageInfo_ProjectGrantUpdate.Size(m) -} -func (m *ProjectGrantUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantUpdate proto.InternalMessageInfo - -func (m *ProjectGrantUpdate) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantUpdate) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectGrantUpdate) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -type ProjectGrantID struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantID) Reset() { *m = ProjectGrantID{} } -func (m *ProjectGrantID) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantID) ProtoMessage() {} -func (*ProjectGrantID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{112} -} - -func (m *ProjectGrantID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantID.Unmarshal(m, b) -} -func (m *ProjectGrantID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantID.Marshal(b, m, deterministic) -} -func (m *ProjectGrantID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantID.Merge(m, src) -} -func (m *ProjectGrantID) XXX_Size() int { - return xxx_messageInfo_ProjectGrantID.Size(m) -} -func (m *ProjectGrantID) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantID.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantID proto.InternalMessageInfo - -func (m *ProjectGrantID) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type ProjectGrantView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantedOrgId string `protobuf:"bytes,3,opt,name=granted_org_id,json=grantedOrgId,proto3" json:"granted_org_id,omitempty"` - GrantedOrgName string `protobuf:"bytes,4,opt,name=granted_org_name,json=grantedOrgName,proto3" json:"granted_org_name,omitempty"` - RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State ProjectGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - ProjectName string `protobuf:"bytes,9,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` - Sequence uint64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"` - ResourceOwner string `protobuf:"bytes,11,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - ResourceOwnerName string `protobuf:"bytes,12,opt,name=resource_owner_name,json=resourceOwnerName,proto3" json:"resource_owner_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantView) Reset() { *m = ProjectGrantView{} } -func (m *ProjectGrantView) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantView) ProtoMessage() {} -func (*ProjectGrantView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{113} -} - -func (m *ProjectGrantView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantView.Unmarshal(m, b) -} -func (m *ProjectGrantView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantView.Marshal(b, m, deterministic) -} -func (m *ProjectGrantView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantView.Merge(m, src) -} -func (m *ProjectGrantView) XXX_Size() int { - return xxx_messageInfo_ProjectGrantView.Size(m) -} -func (m *ProjectGrantView) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantView.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantView proto.InternalMessageInfo - -func (m *ProjectGrantView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *ProjectGrantView) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantView) GetGrantedOrgId() string { - if m != nil { - return m.GrantedOrgId - } - return "" -} - -func (m *ProjectGrantView) GetGrantedOrgName() string { - if m != nil { - return m.GrantedOrgName - } - return "" -} - -func (m *ProjectGrantView) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -func (m *ProjectGrantView) GetState() ProjectGrantState { - if m != nil { - return m.State - } - return ProjectGrantState_PROJECTGRANTSTATE_UNSPECIFIED -} - -func (m *ProjectGrantView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectGrantView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectGrantView) GetProjectName() string { - if m != nil { - return m.ProjectName - } - return "" -} - -func (m *ProjectGrantView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *ProjectGrantView) GetResourceOwner() string { - if m != nil { - return m.ResourceOwner - } - return "" -} - -func (m *ProjectGrantView) GetResourceOwnerName() string { - if m != nil { - return m.ResourceOwnerName - } - return "" -} - -type ProjectGrantSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ProjectGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantSearchResponse) Reset() { *m = ProjectGrantSearchResponse{} } -func (m *ProjectGrantSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantSearchResponse) ProtoMessage() {} -func (*ProjectGrantSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{114} -} - -func (m *ProjectGrantSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantSearchResponse.Unmarshal(m, b) -} -func (m *ProjectGrantSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantSearchResponse.Marshal(b, m, deterministic) -} -func (m *ProjectGrantSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantSearchResponse.Merge(m, src) -} -func (m *ProjectGrantSearchResponse) XXX_Size() int { - return xxx_messageInfo_ProjectGrantSearchResponse.Size(m) -} -func (m *ProjectGrantSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantSearchResponse proto.InternalMessageInfo - -func (m *ProjectGrantSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectGrantSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectGrantSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ProjectGrantSearchResponse) GetResult() []*ProjectGrantView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ProjectGrantSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ProjectGrantSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type GrantedProjectSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GrantedProjectSearchRequest) Reset() { *m = GrantedProjectSearchRequest{} } -func (m *GrantedProjectSearchRequest) String() string { return proto.CompactTextString(m) } -func (*GrantedProjectSearchRequest) ProtoMessage() {} -func (*GrantedProjectSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{115} -} - -func (m *GrantedProjectSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GrantedProjectSearchRequest.Unmarshal(m, b) -} -func (m *GrantedProjectSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GrantedProjectSearchRequest.Marshal(b, m, deterministic) -} -func (m *GrantedProjectSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GrantedProjectSearchRequest.Merge(m, src) -} -func (m *GrantedProjectSearchRequest) XXX_Size() int { - return xxx_messageInfo_GrantedProjectSearchRequest.Size(m) -} -func (m *GrantedProjectSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GrantedProjectSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GrantedProjectSearchRequest proto.InternalMessageInfo - -func (m *GrantedProjectSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *GrantedProjectSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *GrantedProjectSearchRequest) GetQueries() []*ProjectSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ProjectGrantSearchRequest struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectGrantSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantSearchRequest) Reset() { *m = ProjectGrantSearchRequest{} } -func (m *ProjectGrantSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantSearchRequest) ProtoMessage() {} -func (*ProjectGrantSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{116} -} - -func (m *ProjectGrantSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantSearchRequest.Unmarshal(m, b) -} -func (m *ProjectGrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantSearchRequest.Marshal(b, m, deterministic) -} -func (m *ProjectGrantSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantSearchRequest.Merge(m, src) -} -func (m *ProjectGrantSearchRequest) XXX_Size() int { - return xxx_messageInfo_ProjectGrantSearchRequest.Size(m) -} -func (m *ProjectGrantSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantSearchRequest proto.InternalMessageInfo - -func (m *ProjectGrantSearchRequest) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectGrantSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectGrantSearchRequest) GetQueries() []*ProjectGrantSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ProjectGrantSearchQuery struct { - Key ProjectGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantSearchQuery) Reset() { *m = ProjectGrantSearchQuery{} } -func (m *ProjectGrantSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantSearchQuery) ProtoMessage() {} -func (*ProjectGrantSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{117} -} - -func (m *ProjectGrantSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantSearchQuery.Unmarshal(m, b) -} -func (m *ProjectGrantSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantSearchQuery.Marshal(b, m, deterministic) -} -func (m *ProjectGrantSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantSearchQuery.Merge(m, src) -} -func (m *ProjectGrantSearchQuery) XXX_Size() int { - return xxx_messageInfo_ProjectGrantSearchQuery.Size(m) -} -func (m *ProjectGrantSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantSearchQuery proto.InternalMessageInfo - -func (m *ProjectGrantSearchQuery) GetKey() ProjectGrantSearchKey { - if m != nil { - return m.Key - } - return ProjectGrantSearchKey_PROJECTGRANTSEARCHKEY_UNSPECIFIED -} - -func (m *ProjectGrantSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ProjectGrantSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type ProjectGrantMemberRoles struct { - Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberRoles) Reset() { *m = ProjectGrantMemberRoles{} } -func (m *ProjectGrantMemberRoles) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberRoles) ProtoMessage() {} -func (*ProjectGrantMemberRoles) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{118} -} - -func (m *ProjectGrantMemberRoles) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberRoles.Unmarshal(m, b) -} -func (m *ProjectGrantMemberRoles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberRoles.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberRoles) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberRoles.Merge(m, src) -} -func (m *ProjectGrantMemberRoles) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberRoles.Size(m) -} -func (m *ProjectGrantMemberRoles) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberRoles.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberRoles proto.InternalMessageInfo - -func (m *ProjectGrantMemberRoles) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ProjectGrantMember struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,5,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMember) Reset() { *m = ProjectGrantMember{} } -func (m *ProjectGrantMember) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMember) ProtoMessage() {} -func (*ProjectGrantMember) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{119} -} - -func (m *ProjectGrantMember) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMember.Unmarshal(m, b) -} -func (m *ProjectGrantMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMember.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMember) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMember.Merge(m, src) -} -func (m *ProjectGrantMember) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMember.Size(m) -} -func (m *ProjectGrantMember) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMember.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMember proto.InternalMessageInfo - -func (m *ProjectGrantMember) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectGrantMember) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *ProjectGrantMember) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectGrantMember) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectGrantMember) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -type ProjectGrantMemberAdd struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberAdd) Reset() { *m = ProjectGrantMemberAdd{} } -func (m *ProjectGrantMemberAdd) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberAdd) ProtoMessage() {} -func (*ProjectGrantMemberAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{120} -} - -func (m *ProjectGrantMemberAdd) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberAdd.Unmarshal(m, b) -} -func (m *ProjectGrantMemberAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberAdd.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberAdd.Merge(m, src) -} -func (m *ProjectGrantMemberAdd) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberAdd.Size(m) -} -func (m *ProjectGrantMemberAdd) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberAdd proto.InternalMessageInfo - -func (m *ProjectGrantMemberAdd) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantMemberAdd) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -func (m *ProjectGrantMemberAdd) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectGrantMemberAdd) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ProjectGrantMemberChange struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Roles []string `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberChange) Reset() { *m = ProjectGrantMemberChange{} } -func (m *ProjectGrantMemberChange) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberChange) ProtoMessage() {} -func (*ProjectGrantMemberChange) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{121} -} - -func (m *ProjectGrantMemberChange) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberChange.Unmarshal(m, b) -} -func (m *ProjectGrantMemberChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberChange.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberChange) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberChange.Merge(m, src) -} -func (m *ProjectGrantMemberChange) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberChange.Size(m) -} -func (m *ProjectGrantMemberChange) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberChange.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberChange proto.InternalMessageInfo - -func (m *ProjectGrantMemberChange) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantMemberChange) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -func (m *ProjectGrantMemberChange) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectGrantMemberChange) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -type ProjectGrantMemberRemove struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberRemove) Reset() { *m = ProjectGrantMemberRemove{} } -func (m *ProjectGrantMemberRemove) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberRemove) ProtoMessage() {} -func (*ProjectGrantMemberRemove) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{122} -} - -func (m *ProjectGrantMemberRemove) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberRemove.Unmarshal(m, b) -} -func (m *ProjectGrantMemberRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberRemove.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberRemove) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberRemove.Merge(m, src) -} -func (m *ProjectGrantMemberRemove) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberRemove.Size(m) -} -func (m *ProjectGrantMemberRemove) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberRemove.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberRemove proto.InternalMessageInfo - -func (m *ProjectGrantMemberRemove) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantMemberRemove) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -func (m *ProjectGrantMemberRemove) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type ProjectGrantMemberView struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Roles []string `protobuf:"bytes,6,rep,name=roles,proto3" json:"roles,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - DisplayName string `protobuf:"bytes,10,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberView) Reset() { *m = ProjectGrantMemberView{} } -func (m *ProjectGrantMemberView) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberView) ProtoMessage() {} -func (*ProjectGrantMemberView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{123} -} - -func (m *ProjectGrantMemberView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberView.Unmarshal(m, b) -} -func (m *ProjectGrantMemberView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberView.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberView.Merge(m, src) -} -func (m *ProjectGrantMemberView) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberView.Size(m) -} -func (m *ProjectGrantMemberView) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberView.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberView proto.InternalMessageInfo - -func (m *ProjectGrantMemberView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ProjectGrantMemberView) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *ProjectGrantMemberView) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *ProjectGrantMemberView) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *ProjectGrantMemberView) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *ProjectGrantMemberView) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *ProjectGrantMemberView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *ProjectGrantMemberView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ProjectGrantMemberView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *ProjectGrantMemberView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -type ProjectGrantMemberSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ProjectGrantMemberView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberSearchResponse) Reset() { *m = ProjectGrantMemberSearchResponse{} } -func (m *ProjectGrantMemberSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberSearchResponse) ProtoMessage() {} -func (*ProjectGrantMemberSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{124} -} - -func (m *ProjectGrantMemberSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberSearchResponse.Unmarshal(m, b) -} -func (m *ProjectGrantMemberSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberSearchResponse.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberSearchResponse.Merge(m, src) -} -func (m *ProjectGrantMemberSearchResponse) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberSearchResponse.Size(m) -} -func (m *ProjectGrantMemberSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberSearchResponse proto.InternalMessageInfo - -func (m *ProjectGrantMemberSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectGrantMemberSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectGrantMemberSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ProjectGrantMemberSearchResponse) GetResult() []*ProjectGrantMemberView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ProjectGrantMemberSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ProjectGrantMemberSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type ProjectGrantMemberSearchRequest struct { - ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - GrantId string `protobuf:"bytes,2,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - Offset uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*ProjectGrantMemberSearchQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberSearchRequest) Reset() { *m = ProjectGrantMemberSearchRequest{} } -func (m *ProjectGrantMemberSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberSearchRequest) ProtoMessage() {} -func (*ProjectGrantMemberSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{125} -} - -func (m *ProjectGrantMemberSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberSearchRequest.Unmarshal(m, b) -} -func (m *ProjectGrantMemberSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberSearchRequest.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberSearchRequest.Merge(m, src) -} -func (m *ProjectGrantMemberSearchRequest) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberSearchRequest.Size(m) -} -func (m *ProjectGrantMemberSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberSearchRequest proto.InternalMessageInfo - -func (m *ProjectGrantMemberSearchRequest) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *ProjectGrantMemberSearchRequest) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -func (m *ProjectGrantMemberSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ProjectGrantMemberSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectGrantMemberSearchRequest) GetQueries() []*ProjectGrantMemberSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type ProjectGrantMemberSearchQuery struct { - Key ProjectGrantMemberSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectGrantMemberSearchQuery) Reset() { *m = ProjectGrantMemberSearchQuery{} } -func (m *ProjectGrantMemberSearchQuery) String() string { return proto.CompactTextString(m) } -func (*ProjectGrantMemberSearchQuery) ProtoMessage() {} -func (*ProjectGrantMemberSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{126} -} - -func (m *ProjectGrantMemberSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectGrantMemberSearchQuery.Unmarshal(m, b) -} -func (m *ProjectGrantMemberSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectGrantMemberSearchQuery.Marshal(b, m, deterministic) -} -func (m *ProjectGrantMemberSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectGrantMemberSearchQuery.Merge(m, src) -} -func (m *ProjectGrantMemberSearchQuery) XXX_Size() int { - return xxx_messageInfo_ProjectGrantMemberSearchQuery.Size(m) -} -func (m *ProjectGrantMemberSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectGrantMemberSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectGrantMemberSearchQuery proto.InternalMessageInfo - -func (m *ProjectGrantMemberSearchQuery) GetKey() ProjectGrantMemberSearchKey { - if m != nil { - return m.Key - } - return ProjectGrantMemberSearchKey_PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED -} - -func (m *ProjectGrantMemberSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *ProjectGrantMemberSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type UserGrant struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State UserGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - GrantId string `protobuf:"bytes,10,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrant) Reset() { *m = UserGrant{} } -func (m *UserGrant) String() string { return proto.CompactTextString(m) } -func (*UserGrant) ProtoMessage() {} -func (*UserGrant) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{127} -} - -func (m *UserGrant) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrant.Unmarshal(m, b) -} -func (m *UserGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrant.Marshal(b, m, deterministic) -} -func (m *UserGrant) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrant.Merge(m, src) -} -func (m *UserGrant) XXX_Size() int { - return xxx_messageInfo_UserGrant.Size(m) -} -func (m *UserGrant) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrant.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrant proto.InternalMessageInfo - -func (m *UserGrant) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserGrant) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserGrant) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -func (m *UserGrant) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *UserGrant) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -func (m *UserGrant) GetState() UserGrantState { - if m != nil { - return m.State - } - return UserGrantState_USERGRANTSTATE_UNSPECIFIED -} - -func (m *UserGrant) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserGrant) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *UserGrant) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserGrant) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -type UserGrantCreate struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - GrantId string `protobuf:"bytes,4,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantCreate) Reset() { *m = UserGrantCreate{} } -func (m *UserGrantCreate) String() string { return proto.CompactTextString(m) } -func (*UserGrantCreate) ProtoMessage() {} -func (*UserGrantCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{128} -} - -func (m *UserGrantCreate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantCreate.Unmarshal(m, b) -} -func (m *UserGrantCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantCreate.Marshal(b, m, deterministic) -} -func (m *UserGrantCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantCreate.Merge(m, src) -} -func (m *UserGrantCreate) XXX_Size() int { - return xxx_messageInfo_UserGrantCreate.Size(m) -} -func (m *UserGrantCreate) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantCreate proto.InternalMessageInfo - -func (m *UserGrantCreate) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserGrantCreate) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *UserGrantCreate) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -func (m *UserGrantCreate) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -type UserGrantUpdate struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - RoleKeys []string `protobuf:"bytes,3,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantUpdate) Reset() { *m = UserGrantUpdate{} } -func (m *UserGrantUpdate) String() string { return proto.CompactTextString(m) } -func (*UserGrantUpdate) ProtoMessage() {} -func (*UserGrantUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{129} -} - -func (m *UserGrantUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantUpdate.Unmarshal(m, b) -} -func (m *UserGrantUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantUpdate.Marshal(b, m, deterministic) -} -func (m *UserGrantUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantUpdate.Merge(m, src) -} -func (m *UserGrantUpdate) XXX_Size() int { - return xxx_messageInfo_UserGrantUpdate.Size(m) -} -func (m *UserGrantUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantUpdate proto.InternalMessageInfo - -func (m *UserGrantUpdate) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserGrantUpdate) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserGrantUpdate) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -type UserGrantRemoveBulk struct { - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantRemoveBulk) Reset() { *m = UserGrantRemoveBulk{} } -func (m *UserGrantRemoveBulk) String() string { return proto.CompactTextString(m) } -func (*UserGrantRemoveBulk) ProtoMessage() {} -func (*UserGrantRemoveBulk) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{130} -} - -func (m *UserGrantRemoveBulk) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantRemoveBulk.Unmarshal(m, b) -} -func (m *UserGrantRemoveBulk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantRemoveBulk.Marshal(b, m, deterministic) -} -func (m *UserGrantRemoveBulk) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantRemoveBulk.Merge(m, src) -} -func (m *UserGrantRemoveBulk) XXX_Size() int { - return xxx_messageInfo_UserGrantRemoveBulk.Size(m) -} -func (m *UserGrantRemoveBulk) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantRemoveBulk.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantRemoveBulk proto.InternalMessageInfo - -func (m *UserGrantRemoveBulk) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -type UserGrantID struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantID) Reset() { *m = UserGrantID{} } -func (m *UserGrantID) String() string { return proto.CompactTextString(m) } -func (*UserGrantID) ProtoMessage() {} -func (*UserGrantID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{131} -} - -func (m *UserGrantID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantID.Unmarshal(m, b) -} -func (m *UserGrantID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantID.Marshal(b, m, deterministic) -} -func (m *UserGrantID) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantID.Merge(m, src) -} -func (m *UserGrantID) XXX_Size() int { - return xxx_messageInfo_UserGrantID.Size(m) -} -func (m *UserGrantID) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantID.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantID proto.InternalMessageInfo - -func (m *UserGrantID) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserGrantID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type UserGrantView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - OrgId string `protobuf:"bytes,3,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` - ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - RoleKeys []string `protobuf:"bytes,5,rep,name=role_keys,json=roleKeys,proto3" json:"role_keys,omitempty"` - State UserGrantState `protobuf:"varint,6,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.UserGrantState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - UserName string `protobuf:"bytes,9,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` - FirstName string `protobuf:"bytes,10,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` - LastName string `protobuf:"bytes,11,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` - Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` - OrgName string `protobuf:"bytes,13,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"` - OrgDomain string `protobuf:"bytes,14,opt,name=org_domain,json=orgDomain,proto3" json:"org_domain,omitempty"` - ProjectName string `protobuf:"bytes,15,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"` - Sequence uint64 `protobuf:"varint,16,opt,name=sequence,proto3" json:"sequence,omitempty"` - ResourceOwner string `protobuf:"bytes,17,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - DisplayName string `protobuf:"bytes,18,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - GrantId string `protobuf:"bytes,19,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantView) Reset() { *m = UserGrantView{} } -func (m *UserGrantView) String() string { return proto.CompactTextString(m) } -func (*UserGrantView) ProtoMessage() {} -func (*UserGrantView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{132} -} - -func (m *UserGrantView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantView.Unmarshal(m, b) -} -func (m *UserGrantView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantView.Marshal(b, m, deterministic) -} -func (m *UserGrantView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantView.Merge(m, src) -} -func (m *UserGrantView) XXX_Size() int { - return xxx_messageInfo_UserGrantView.Size(m) -} -func (m *UserGrantView) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantView proto.InternalMessageInfo - -func (m *UserGrantView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *UserGrantView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserGrantView) GetOrgId() string { - if m != nil { - return m.OrgId - } - return "" -} - -func (m *UserGrantView) GetProjectId() string { - if m != nil { - return m.ProjectId - } - return "" -} - -func (m *UserGrantView) GetRoleKeys() []string { - if m != nil { - return m.RoleKeys - } - return nil -} - -func (m *UserGrantView) GetState() UserGrantState { - if m != nil { - return m.State - } - return UserGrantState_USERGRANTSTATE_UNSPECIFIED -} - -func (m *UserGrantView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserGrantView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *UserGrantView) GetUserName() string { - if m != nil { - return m.UserName - } - return "" -} - -func (m *UserGrantView) GetFirstName() string { - if m != nil { - return m.FirstName - } - return "" -} - -func (m *UserGrantView) GetLastName() string { - if m != nil { - return m.LastName - } - return "" -} - -func (m *UserGrantView) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *UserGrantView) GetOrgName() string { - if m != nil { - return m.OrgName - } - return "" -} - -func (m *UserGrantView) GetOrgDomain() string { - if m != nil { - return m.OrgDomain - } - return "" -} - -func (m *UserGrantView) GetProjectName() string { - if m != nil { - return m.ProjectName - } - return "" -} - -func (m *UserGrantView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserGrantView) GetResourceOwner() string { - if m != nil { - return m.ResourceOwner - } - return "" -} - -func (m *UserGrantView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *UserGrantView) GetGrantId() string { - if m != nil { - return m.GrantId - } - return "" -} - -type UserGrantSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*UserGrantView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantSearchResponse) Reset() { *m = UserGrantSearchResponse{} } -func (m *UserGrantSearchResponse) String() string { return proto.CompactTextString(m) } -func (*UserGrantSearchResponse) ProtoMessage() {} -func (*UserGrantSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{133} -} - -func (m *UserGrantSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantSearchResponse.Unmarshal(m, b) -} -func (m *UserGrantSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantSearchResponse.Marshal(b, m, deterministic) -} -func (m *UserGrantSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantSearchResponse.Merge(m, src) -} -func (m *UserGrantSearchResponse) XXX_Size() int { - return xxx_messageInfo_UserGrantSearchResponse.Size(m) -} -func (m *UserGrantSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantSearchResponse proto.InternalMessageInfo - -func (m *UserGrantSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *UserGrantSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *UserGrantSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *UserGrantSearchResponse) GetResult() []*UserGrantView { - if m != nil { - return m.Result - } - return nil -} - -func (m *UserGrantSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *UserGrantSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type UserGrantSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*UserGrantSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantSearchRequest) Reset() { *m = UserGrantSearchRequest{} } -func (m *UserGrantSearchRequest) String() string { return proto.CompactTextString(m) } -func (*UserGrantSearchRequest) ProtoMessage() {} -func (*UserGrantSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{134} -} - -func (m *UserGrantSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantSearchRequest.Unmarshal(m, b) -} -func (m *UserGrantSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantSearchRequest.Marshal(b, m, deterministic) -} -func (m *UserGrantSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantSearchRequest.Merge(m, src) -} -func (m *UserGrantSearchRequest) XXX_Size() int { - return xxx_messageInfo_UserGrantSearchRequest.Size(m) -} -func (m *UserGrantSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantSearchRequest proto.InternalMessageInfo - -func (m *UserGrantSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *UserGrantSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *UserGrantSearchRequest) GetQueries() []*UserGrantSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type UserGrantSearchQuery struct { - Key UserGrantSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserGrantSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserGrantSearchQuery) Reset() { *m = UserGrantSearchQuery{} } -func (m *UserGrantSearchQuery) String() string { return proto.CompactTextString(m) } -func (*UserGrantSearchQuery) ProtoMessage() {} -func (*UserGrantSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{135} -} - -func (m *UserGrantSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserGrantSearchQuery.Unmarshal(m, b) -} -func (m *UserGrantSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserGrantSearchQuery.Marshal(b, m, deterministic) -} -func (m *UserGrantSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserGrantSearchQuery.Merge(m, src) -} -func (m *UserGrantSearchQuery) XXX_Size() int { - return xxx_messageInfo_UserGrantSearchQuery.Size(m) -} -func (m *UserGrantSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_UserGrantSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_UserGrantSearchQuery proto.InternalMessageInfo - -func (m *UserGrantSearchQuery) GetKey() UserGrantSearchKey { - if m != nil { - return m.Key - } - return UserGrantSearchKey_USERGRANTSEARCHKEY_UNSPECIFIED -} - -func (m *UserGrantSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *UserGrantSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type UserMembershipSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*UserMembershipView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserMembershipSearchResponse) Reset() { *m = UserMembershipSearchResponse{} } -func (m *UserMembershipSearchResponse) String() string { return proto.CompactTextString(m) } -func (*UserMembershipSearchResponse) ProtoMessage() {} -func (*UserMembershipSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{136} -} - -func (m *UserMembershipSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMembershipSearchResponse.Unmarshal(m, b) -} -func (m *UserMembershipSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMembershipSearchResponse.Marshal(b, m, deterministic) -} -func (m *UserMembershipSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMembershipSearchResponse.Merge(m, src) -} -func (m *UserMembershipSearchResponse) XXX_Size() int { - return xxx_messageInfo_UserMembershipSearchResponse.Size(m) -} -func (m *UserMembershipSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserMembershipSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UserMembershipSearchResponse proto.InternalMessageInfo - -func (m *UserMembershipSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *UserMembershipSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *UserMembershipSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *UserMembershipSearchResponse) GetResult() []*UserMembershipView { - if m != nil { - return m.Result - } - return nil -} - -func (m *UserMembershipSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *UserMembershipSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type UserMembershipSearchRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Offset uint64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*UserMembershipSearchQuery `protobuf:"bytes,4,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserMembershipSearchRequest) Reset() { *m = UserMembershipSearchRequest{} } -func (m *UserMembershipSearchRequest) String() string { return proto.CompactTextString(m) } -func (*UserMembershipSearchRequest) ProtoMessage() {} -func (*UserMembershipSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{137} -} - -func (m *UserMembershipSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMembershipSearchRequest.Unmarshal(m, b) -} -func (m *UserMembershipSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMembershipSearchRequest.Marshal(b, m, deterministic) -} -func (m *UserMembershipSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMembershipSearchRequest.Merge(m, src) -} -func (m *UserMembershipSearchRequest) XXX_Size() int { - return xxx_messageInfo_UserMembershipSearchRequest.Size(m) -} -func (m *UserMembershipSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserMembershipSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UserMembershipSearchRequest proto.InternalMessageInfo - -func (m *UserMembershipSearchRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserMembershipSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *UserMembershipSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *UserMembershipSearchRequest) GetQueries() []*UserMembershipSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type UserMembershipSearchQuery struct { - Key UserMembershipSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.UserMembershipSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserMembershipSearchQuery) Reset() { *m = UserMembershipSearchQuery{} } -func (m *UserMembershipSearchQuery) String() string { return proto.CompactTextString(m) } -func (*UserMembershipSearchQuery) ProtoMessage() {} -func (*UserMembershipSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{138} -} - -func (m *UserMembershipSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMembershipSearchQuery.Unmarshal(m, b) -} -func (m *UserMembershipSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMembershipSearchQuery.Marshal(b, m, deterministic) -} -func (m *UserMembershipSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMembershipSearchQuery.Merge(m, src) -} -func (m *UserMembershipSearchQuery) XXX_Size() int { - return xxx_messageInfo_UserMembershipSearchQuery.Size(m) -} -func (m *UserMembershipSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_UserMembershipSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_UserMembershipSearchQuery proto.InternalMessageInfo - -func (m *UserMembershipSearchQuery) GetKey() UserMembershipSearchKey { - if m != nil { - return m.Key - } - return UserMembershipSearchKey_USERMEMBERSHIPSEARCHKEY_UNSPECIFIED -} - -func (m *UserMembershipSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *UserMembershipSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type UserMembershipView struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - MemberType MemberType `protobuf:"varint,2,opt,name=member_type,json=memberType,proto3,enum=caos.zitadel.management.api.v1.MemberType" json:"member_type,omitempty"` - AggregateId string `protobuf:"bytes,3,opt,name=aggregate_id,json=aggregateId,proto3" json:"aggregate_id,omitempty"` - ObjectId string `protobuf:"bytes,4,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"` - Roles []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"` - DisplayName string `protobuf:"bytes,6,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - ResourceOwner string `protobuf:"bytes,10,opt,name=resource_owner,json=resourceOwner,proto3" json:"resource_owner,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserMembershipView) Reset() { *m = UserMembershipView{} } -func (m *UserMembershipView) String() string { return proto.CompactTextString(m) } -func (*UserMembershipView) ProtoMessage() {} -func (*UserMembershipView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{139} -} - -func (m *UserMembershipView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserMembershipView.Unmarshal(m, b) -} -func (m *UserMembershipView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserMembershipView.Marshal(b, m, deterministic) -} -func (m *UserMembershipView) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserMembershipView.Merge(m, src) -} -func (m *UserMembershipView) XXX_Size() int { - return xxx_messageInfo_UserMembershipView.Size(m) -} -func (m *UserMembershipView) XXX_DiscardUnknown() { - xxx_messageInfo_UserMembershipView.DiscardUnknown(m) -} - -var xxx_messageInfo_UserMembershipView proto.InternalMessageInfo - -func (m *UserMembershipView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *UserMembershipView) GetMemberType() MemberType { - if m != nil { - return m.MemberType - } - return MemberType_MEMBERTYPE_UNSPECIFIED -} - -func (m *UserMembershipView) GetAggregateId() string { - if m != nil { - return m.AggregateId - } - return "" -} - -func (m *UserMembershipView) GetObjectId() string { - if m != nil { - return m.ObjectId - } - return "" -} - -func (m *UserMembershipView) GetRoles() []string { - if m != nil { - return m.Roles - } - return nil -} - -func (m *UserMembershipView) GetDisplayName() string { - if m != nil { - return m.DisplayName - } - return "" -} - -func (m *UserMembershipView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *UserMembershipView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *UserMembershipView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *UserMembershipView) GetResourceOwner() string { - if m != nil { - return m.ResourceOwner - } - return "" -} - -type IdpID struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpID) Reset() { *m = IdpID{} } -func (m *IdpID) String() string { return proto.CompactTextString(m) } -func (*IdpID) ProtoMessage() {} -func (*IdpID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{140} -} - -func (m *IdpID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpID.Unmarshal(m, b) -} -func (m *IdpID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpID.Marshal(b, m, deterministic) -} -func (m *IdpID) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpID.Merge(m, src) -} -func (m *IdpID) XXX_Size() int { - return xxx_messageInfo_IdpID.Size(m) -} -func (m *IdpID) XXX_DiscardUnknown() { - xxx_messageInfo_IdpID.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpID proto.InternalMessageInfo - -func (m *IdpID) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -type Idp struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State IdpState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.IdpState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,6,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.management.api.v1.IdpStylingType" json:"styling_type,omitempty"` - // Types that are valid to be assigned to IdpConfig: - // *Idp_OidcConfig - IdpConfig isIdp_IdpConfig `protobuf_oneof:"idp_config"` - Sequence uint64 `protobuf:"varint,8,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Idp) Reset() { *m = Idp{} } -func (m *Idp) String() string { return proto.CompactTextString(m) } -func (*Idp) ProtoMessage() {} -func (*Idp) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{141} -} - -func (m *Idp) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Idp.Unmarshal(m, b) -} -func (m *Idp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Idp.Marshal(b, m, deterministic) -} -func (m *Idp) XXX_Merge(src proto.Message) { - xxx_messageInfo_Idp.Merge(m, src) -} -func (m *Idp) XXX_Size() int { - return xxx_messageInfo_Idp.Size(m) -} -func (m *Idp) XXX_DiscardUnknown() { - xxx_messageInfo_Idp.DiscardUnknown(m) -} - -var xxx_messageInfo_Idp proto.InternalMessageInfo - -func (m *Idp) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Idp) GetState() IdpState { - if m != nil { - return m.State - } - return IdpState_IDPCONFIGSTATE_UNSPECIFIED -} - -func (m *Idp) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *Idp) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *Idp) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Idp) GetStylingType() IdpStylingType { - if m != nil { - return m.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -type isIdp_IdpConfig interface { - isIdp_IdpConfig() -} - -type Idp_OidcConfig struct { - OidcConfig *OidcIdpConfig `protobuf:"bytes,7,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*Idp_OidcConfig) isIdp_IdpConfig() {} - -func (m *Idp) GetIdpConfig() isIdp_IdpConfig { - if m != nil { - return m.IdpConfig - } - return nil -} - -func (m *Idp) GetOidcConfig() *OidcIdpConfig { - if x, ok := m.GetIdpConfig().(*Idp_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (m *Idp) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Idp) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Idp_OidcConfig)(nil), - } -} - -type IdpUpdate struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,3,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.management.api.v1.IdpStylingType" json:"styling_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpUpdate) Reset() { *m = IdpUpdate{} } -func (m *IdpUpdate) String() string { return proto.CompactTextString(m) } -func (*IdpUpdate) ProtoMessage() {} -func (*IdpUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{142} -} - -func (m *IdpUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpUpdate.Unmarshal(m, b) -} -func (m *IdpUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpUpdate.Marshal(b, m, deterministic) -} -func (m *IdpUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpUpdate.Merge(m, src) -} -func (m *IdpUpdate) XXX_Size() int { - return xxx_messageInfo_IdpUpdate.Size(m) -} -func (m *IdpUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_IdpUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpUpdate proto.InternalMessageInfo - -func (m *IdpUpdate) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *IdpUpdate) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *IdpUpdate) GetStylingType() IdpStylingType { - if m != nil { - return m.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -type OidcIdpConfig struct { - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,5,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,6,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OidcIdpConfig) Reset() { *m = OidcIdpConfig{} } -func (m *OidcIdpConfig) String() string { return proto.CompactTextString(m) } -func (*OidcIdpConfig) ProtoMessage() {} -func (*OidcIdpConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{143} -} - -func (m *OidcIdpConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OidcIdpConfig.Unmarshal(m, b) -} -func (m *OidcIdpConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OidcIdpConfig.Marshal(b, m, deterministic) -} -func (m *OidcIdpConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_OidcIdpConfig.Merge(m, src) -} -func (m *OidcIdpConfig) XXX_Size() int { - return xxx_messageInfo_OidcIdpConfig.Size(m) -} -func (m *OidcIdpConfig) XXX_DiscardUnknown() { - xxx_messageInfo_OidcIdpConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_OidcIdpConfig proto.InternalMessageInfo - -func (m *OidcIdpConfig) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OidcIdpConfig) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -func (m *OidcIdpConfig) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *OidcIdpConfig) GetScopes() []string { - if m != nil { - return m.Scopes - } - return nil -} - -func (m *OidcIdpConfig) GetIdpDisplayNameMapping() OIDCMappingField { - if m != nil { - return m.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (m *OidcIdpConfig) GetUsernameMapping() OIDCMappingField { - if m != nil { - return m.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type OidcIdpConfigCreate struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,2,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.management.api.v1.IdpStylingType" json:"styling_type,omitempty"` - ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - Issuer string `protobuf:"bytes,5,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,6,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,7,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,8,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OidcIdpConfigCreate) Reset() { *m = OidcIdpConfigCreate{} } -func (m *OidcIdpConfigCreate) String() string { return proto.CompactTextString(m) } -func (*OidcIdpConfigCreate) ProtoMessage() {} -func (*OidcIdpConfigCreate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{144} -} - -func (m *OidcIdpConfigCreate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OidcIdpConfigCreate.Unmarshal(m, b) -} -func (m *OidcIdpConfigCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OidcIdpConfigCreate.Marshal(b, m, deterministic) -} -func (m *OidcIdpConfigCreate) XXX_Merge(src proto.Message) { - xxx_messageInfo_OidcIdpConfigCreate.Merge(m, src) -} -func (m *OidcIdpConfigCreate) XXX_Size() int { - return xxx_messageInfo_OidcIdpConfigCreate.Size(m) -} -func (m *OidcIdpConfigCreate) XXX_DiscardUnknown() { - xxx_messageInfo_OidcIdpConfigCreate.DiscardUnknown(m) -} - -var xxx_messageInfo_OidcIdpConfigCreate proto.InternalMessageInfo - -func (m *OidcIdpConfigCreate) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *OidcIdpConfigCreate) GetStylingType() IdpStylingType { - if m != nil { - return m.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -func (m *OidcIdpConfigCreate) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OidcIdpConfigCreate) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -func (m *OidcIdpConfigCreate) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *OidcIdpConfigCreate) GetScopes() []string { - if m != nil { - return m.Scopes - } - return nil -} - -func (m *OidcIdpConfigCreate) GetIdpDisplayNameMapping() OIDCMappingField { - if m != nil { - return m.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (m *OidcIdpConfigCreate) GetUsernameMapping() OIDCMappingField { - if m != nil { - return m.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type OidcIdpConfigUpdate struct { - IdpId string `protobuf:"bytes,1,opt,name=idp_id,json=idpId,proto3" json:"idp_id,omitempty"` - ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - ClientSecret string `protobuf:"bytes,3,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - Issuer string `protobuf:"bytes,4,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,5,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,6,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,7,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OidcIdpConfigUpdate) Reset() { *m = OidcIdpConfigUpdate{} } -func (m *OidcIdpConfigUpdate) String() string { return proto.CompactTextString(m) } -func (*OidcIdpConfigUpdate) ProtoMessage() {} -func (*OidcIdpConfigUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{145} -} - -func (m *OidcIdpConfigUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OidcIdpConfigUpdate.Unmarshal(m, b) -} -func (m *OidcIdpConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OidcIdpConfigUpdate.Marshal(b, m, deterministic) -} -func (m *OidcIdpConfigUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_OidcIdpConfigUpdate.Merge(m, src) -} -func (m *OidcIdpConfigUpdate) XXX_Size() int { - return xxx_messageInfo_OidcIdpConfigUpdate.Size(m) -} -func (m *OidcIdpConfigUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_OidcIdpConfigUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_OidcIdpConfigUpdate proto.InternalMessageInfo - -func (m *OidcIdpConfigUpdate) GetIdpId() string { - if m != nil { - return m.IdpId - } - return "" -} - -func (m *OidcIdpConfigUpdate) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OidcIdpConfigUpdate) GetClientSecret() string { - if m != nil { - return m.ClientSecret - } - return "" -} - -func (m *OidcIdpConfigUpdate) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *OidcIdpConfigUpdate) GetScopes() []string { - if m != nil { - return m.Scopes - } - return nil -} - -func (m *OidcIdpConfigUpdate) GetIdpDisplayNameMapping() OIDCMappingField { - if m != nil { - return m.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (m *OidcIdpConfigUpdate) GetUsernameMapping() OIDCMappingField { - if m != nil { - return m.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type IdpSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*IdpView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpSearchResponse) Reset() { *m = IdpSearchResponse{} } -func (m *IdpSearchResponse) String() string { return proto.CompactTextString(m) } -func (*IdpSearchResponse) ProtoMessage() {} -func (*IdpSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{146} -} - -func (m *IdpSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpSearchResponse.Unmarshal(m, b) -} -func (m *IdpSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpSearchResponse.Marshal(b, m, deterministic) -} -func (m *IdpSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpSearchResponse.Merge(m, src) -} -func (m *IdpSearchResponse) XXX_Size() int { - return xxx_messageInfo_IdpSearchResponse.Size(m) -} -func (m *IdpSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IdpSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpSearchResponse proto.InternalMessageInfo - -func (m *IdpSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *IdpSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *IdpSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *IdpSearchResponse) GetResult() []*IdpView { - if m != nil { - return m.Result - } - return nil -} - -func (m *IdpSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *IdpSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type IdpView struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - State IdpState `protobuf:"varint,2,opt,name=state,proto3,enum=caos.zitadel.management.api.v1.IdpState" json:"state,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,3,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - StylingType IdpStylingType `protobuf:"varint,6,opt,name=styling_type,json=stylingType,proto3,enum=caos.zitadel.management.api.v1.IdpStylingType" json:"styling_type,omitempty"` - ProviderType IdpProviderType `protobuf:"varint,7,opt,name=provider_type,json=providerType,proto3,enum=caos.zitadel.management.api.v1.IdpProviderType" json:"provider_type,omitempty"` - // Types that are valid to be assigned to IdpConfigView: - // *IdpView_OidcConfig - IdpConfigView isIdpView_IdpConfigView `protobuf_oneof:"idp_config_view"` - Sequence uint64 `protobuf:"varint,9,opt,name=sequence,proto3" json:"sequence,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpView) Reset() { *m = IdpView{} } -func (m *IdpView) String() string { return proto.CompactTextString(m) } -func (*IdpView) ProtoMessage() {} -func (*IdpView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{147} -} - -func (m *IdpView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpView.Unmarshal(m, b) -} -func (m *IdpView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpView.Marshal(b, m, deterministic) -} -func (m *IdpView) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpView.Merge(m, src) -} -func (m *IdpView) XXX_Size() int { - return xxx_messageInfo_IdpView.Size(m) -} -func (m *IdpView) XXX_DiscardUnknown() { - xxx_messageInfo_IdpView.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpView proto.InternalMessageInfo - -func (m *IdpView) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *IdpView) GetState() IdpState { - if m != nil { - return m.State - } - return IdpState_IDPCONFIGSTATE_UNSPECIFIED -} - -func (m *IdpView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *IdpView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *IdpView) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *IdpView) GetStylingType() IdpStylingType { - if m != nil { - return m.StylingType - } - return IdpStylingType_IDPSTYLINGTYPE_UNSPECIFIED -} - -func (m *IdpView) GetProviderType() IdpProviderType { - if m != nil { - return m.ProviderType - } - return IdpProviderType_IDPPROVIDERTYPE_UNSPECIFIED -} - -type isIdpView_IdpConfigView interface { - isIdpView_IdpConfigView() -} - -type IdpView_OidcConfig struct { - OidcConfig *OidcIdpConfigView `protobuf:"bytes,8,opt,name=oidc_config,json=oidcConfig,proto3,oneof"` -} - -func (*IdpView_OidcConfig) isIdpView_IdpConfigView() {} - -func (m *IdpView) GetIdpConfigView() isIdpView_IdpConfigView { - if m != nil { - return m.IdpConfigView - } - return nil -} - -func (m *IdpView) GetOidcConfig() *OidcIdpConfigView { - if x, ok := m.GetIdpConfigView().(*IdpView_OidcConfig); ok { - return x.OidcConfig - } - return nil -} - -func (m *IdpView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*IdpView) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*IdpView_OidcConfig)(nil), - } -} - -type OidcIdpConfigView struct { - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` - Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` - IdpDisplayNameMapping OIDCMappingField `protobuf:"varint,4,opt,name=idp_display_name_mapping,json=idpDisplayNameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"idp_display_name_mapping,omitempty"` - UsernameMapping OIDCMappingField `protobuf:"varint,5,opt,name=username_mapping,json=usernameMapping,proto3,enum=caos.zitadel.management.api.v1.OIDCMappingField" json:"username_mapping,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OidcIdpConfigView) Reset() { *m = OidcIdpConfigView{} } -func (m *OidcIdpConfigView) String() string { return proto.CompactTextString(m) } -func (*OidcIdpConfigView) ProtoMessage() {} -func (*OidcIdpConfigView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{148} -} - -func (m *OidcIdpConfigView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OidcIdpConfigView.Unmarshal(m, b) -} -func (m *OidcIdpConfigView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OidcIdpConfigView.Marshal(b, m, deterministic) -} -func (m *OidcIdpConfigView) XXX_Merge(src proto.Message) { - xxx_messageInfo_OidcIdpConfigView.Merge(m, src) -} -func (m *OidcIdpConfigView) XXX_Size() int { - return xxx_messageInfo_OidcIdpConfigView.Size(m) -} -func (m *OidcIdpConfigView) XXX_DiscardUnknown() { - xxx_messageInfo_OidcIdpConfigView.DiscardUnknown(m) -} - -var xxx_messageInfo_OidcIdpConfigView proto.InternalMessageInfo - -func (m *OidcIdpConfigView) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OidcIdpConfigView) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *OidcIdpConfigView) GetScopes() []string { - if m != nil { - return m.Scopes - } - return nil -} - -func (m *OidcIdpConfigView) GetIdpDisplayNameMapping() OIDCMappingField { - if m != nil { - return m.IdpDisplayNameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -func (m *OidcIdpConfigView) GetUsernameMapping() OIDCMappingField { - if m != nil { - return m.UsernameMapping - } - return OIDCMappingField_OIDCMAPPINGFIELD_UNSPECIFIED -} - -type IdpSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Queries []*IdpSearchQuery `protobuf:"bytes,3,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpSearchRequest) Reset() { *m = IdpSearchRequest{} } -func (m *IdpSearchRequest) String() string { return proto.CompactTextString(m) } -func (*IdpSearchRequest) ProtoMessage() {} -func (*IdpSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{149} -} - -func (m *IdpSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpSearchRequest.Unmarshal(m, b) -} -func (m *IdpSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpSearchRequest.Marshal(b, m, deterministic) -} -func (m *IdpSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpSearchRequest.Merge(m, src) -} -func (m *IdpSearchRequest) XXX_Size() int { - return xxx_messageInfo_IdpSearchRequest.Size(m) -} -func (m *IdpSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IdpSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpSearchRequest proto.InternalMessageInfo - -func (m *IdpSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *IdpSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *IdpSearchRequest) GetQueries() []*IdpSearchQuery { - if m != nil { - return m.Queries - } - return nil -} - -type IdpSearchQuery struct { - Key IdpSearchKey `protobuf:"varint,1,opt,name=key,proto3,enum=caos.zitadel.management.api.v1.IdpSearchKey" json:"key,omitempty"` - Method SearchMethod `protobuf:"varint,2,opt,name=method,proto3,enum=caos.zitadel.management.api.v1.SearchMethod" json:"method,omitempty"` - Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpSearchQuery) Reset() { *m = IdpSearchQuery{} } -func (m *IdpSearchQuery) String() string { return proto.CompactTextString(m) } -func (*IdpSearchQuery) ProtoMessage() {} -func (*IdpSearchQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{150} -} - -func (m *IdpSearchQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpSearchQuery.Unmarshal(m, b) -} -func (m *IdpSearchQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpSearchQuery.Marshal(b, m, deterministic) -} -func (m *IdpSearchQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpSearchQuery.Merge(m, src) -} -func (m *IdpSearchQuery) XXX_Size() int { - return xxx_messageInfo_IdpSearchQuery.Size(m) -} -func (m *IdpSearchQuery) XXX_DiscardUnknown() { - xxx_messageInfo_IdpSearchQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpSearchQuery proto.InternalMessageInfo - -func (m *IdpSearchQuery) GetKey() IdpSearchKey { - if m != nil { - return m.Key - } - return IdpSearchKey_IDPSEARCHKEY_UNSPECIFIED -} - -func (m *IdpSearchQuery) GetMethod() SearchMethod { - if m != nil { - return m.Method - } - return SearchMethod_SEARCHMETHOD_EQUALS -} - -func (m *IdpSearchQuery) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -type LoginPolicy struct { - AllowUsernamePassword bool `protobuf:"varint,1,opt,name=allow_username_password,json=allowUsernamePassword,proto3" json:"allow_username_password,omitempty"` - AllowRegister bool `protobuf:"varint,2,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` - AllowExternalIdp bool `protobuf:"varint,3,opt,name=allow_external_idp,json=allowExternalIdp,proto3" json:"allow_external_idp,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - ForceMfa bool `protobuf:"varint,6,opt,name=force_mfa,json=forceMfa,proto3" json:"force_mfa,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoginPolicy) Reset() { *m = LoginPolicy{} } -func (m *LoginPolicy) String() string { return proto.CompactTextString(m) } -func (*LoginPolicy) ProtoMessage() {} -func (*LoginPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{151} -} - -func (m *LoginPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoginPolicy.Unmarshal(m, b) -} -func (m *LoginPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoginPolicy.Marshal(b, m, deterministic) -} -func (m *LoginPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoginPolicy.Merge(m, src) -} -func (m *LoginPolicy) XXX_Size() int { - return xxx_messageInfo_LoginPolicy.Size(m) -} -func (m *LoginPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_LoginPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_LoginPolicy proto.InternalMessageInfo - -func (m *LoginPolicy) GetAllowUsernamePassword() bool { - if m != nil { - return m.AllowUsernamePassword - } - return false -} - -func (m *LoginPolicy) GetAllowRegister() bool { - if m != nil { - return m.AllowRegister - } - return false -} - -func (m *LoginPolicy) GetAllowExternalIdp() bool { - if m != nil { - return m.AllowExternalIdp - } - return false -} - -func (m *LoginPolicy) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *LoginPolicy) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *LoginPolicy) GetForceMfa() bool { - if m != nil { - return m.ForceMfa - } - return false -} - -type LoginPolicyRequest struct { - AllowUsernamePassword bool `protobuf:"varint,1,opt,name=allow_username_password,json=allowUsernamePassword,proto3" json:"allow_username_password,omitempty"` - AllowRegister bool `protobuf:"varint,2,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` - AllowExternalIdp bool `protobuf:"varint,3,opt,name=allow_external_idp,json=allowExternalIdp,proto3" json:"allow_external_idp,omitempty"` - ForceMfa bool `protobuf:"varint,4,opt,name=force_mfa,json=forceMfa,proto3" json:"force_mfa,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoginPolicyRequest) Reset() { *m = LoginPolicyRequest{} } -func (m *LoginPolicyRequest) String() string { return proto.CompactTextString(m) } -func (*LoginPolicyRequest) ProtoMessage() {} -func (*LoginPolicyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{152} -} - -func (m *LoginPolicyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoginPolicyRequest.Unmarshal(m, b) -} -func (m *LoginPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoginPolicyRequest.Marshal(b, m, deterministic) -} -func (m *LoginPolicyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoginPolicyRequest.Merge(m, src) -} -func (m *LoginPolicyRequest) XXX_Size() int { - return xxx_messageInfo_LoginPolicyRequest.Size(m) -} -func (m *LoginPolicyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LoginPolicyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LoginPolicyRequest proto.InternalMessageInfo - -func (m *LoginPolicyRequest) GetAllowUsernamePassword() bool { - if m != nil { - return m.AllowUsernamePassword - } - return false -} - -func (m *LoginPolicyRequest) GetAllowRegister() bool { - if m != nil { - return m.AllowRegister - } - return false -} - -func (m *LoginPolicyRequest) GetAllowExternalIdp() bool { - if m != nil { - return m.AllowExternalIdp - } - return false -} - -func (m *LoginPolicyRequest) GetForceMfa() bool { - if m != nil { - return m.ForceMfa - } - return false -} - -type IdpProviderID struct { - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpProviderID) Reset() { *m = IdpProviderID{} } -func (m *IdpProviderID) String() string { return proto.CompactTextString(m) } -func (*IdpProviderID) ProtoMessage() {} -func (*IdpProviderID) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{153} -} - -func (m *IdpProviderID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpProviderID.Unmarshal(m, b) -} -func (m *IdpProviderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpProviderID.Marshal(b, m, deterministic) -} -func (m *IdpProviderID) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpProviderID.Merge(m, src) -} -func (m *IdpProviderID) XXX_Size() int { - return xxx_messageInfo_IdpProviderID.Size(m) -} -func (m *IdpProviderID) XXX_DiscardUnknown() { - xxx_messageInfo_IdpProviderID.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpProviderID proto.InternalMessageInfo - -func (m *IdpProviderID) GetIdpConfigId() string { - if m != nil { - return m.IdpConfigId - } - return "" -} - -type IdpProviderAdd struct { - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - IdpProviderType IdpProviderType `protobuf:"varint,2,opt,name=idp_provider_type,json=idpProviderType,proto3,enum=caos.zitadel.management.api.v1.IdpProviderType" json:"idp_provider_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpProviderAdd) Reset() { *m = IdpProviderAdd{} } -func (m *IdpProviderAdd) String() string { return proto.CompactTextString(m) } -func (*IdpProviderAdd) ProtoMessage() {} -func (*IdpProviderAdd) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{154} -} - -func (m *IdpProviderAdd) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpProviderAdd.Unmarshal(m, b) -} -func (m *IdpProviderAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpProviderAdd.Marshal(b, m, deterministic) -} -func (m *IdpProviderAdd) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpProviderAdd.Merge(m, src) -} -func (m *IdpProviderAdd) XXX_Size() int { - return xxx_messageInfo_IdpProviderAdd.Size(m) -} -func (m *IdpProviderAdd) XXX_DiscardUnknown() { - xxx_messageInfo_IdpProviderAdd.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpProviderAdd proto.InternalMessageInfo - -func (m *IdpProviderAdd) GetIdpConfigId() string { - if m != nil { - return m.IdpConfigId - } - return "" -} - -func (m *IdpProviderAdd) GetIdpProviderType() IdpProviderType { - if m != nil { - return m.IdpProviderType - } - return IdpProviderType_IDPPROVIDERTYPE_UNSPECIFIED -} - -type IdpProvider struct { - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - IdpProvider_Type IdpProviderType `protobuf:"varint,2,opt,name=idp_provider_Type,json=idpProviderType,proto3,enum=caos.zitadel.management.api.v1.IdpProviderType" json:"idp_provider_Type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpProvider) Reset() { *m = IdpProvider{} } -func (m *IdpProvider) String() string { return proto.CompactTextString(m) } -func (*IdpProvider) ProtoMessage() {} -func (*IdpProvider) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{155} -} - -func (m *IdpProvider) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpProvider.Unmarshal(m, b) -} -func (m *IdpProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpProvider.Marshal(b, m, deterministic) -} -func (m *IdpProvider) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpProvider.Merge(m, src) -} -func (m *IdpProvider) XXX_Size() int { - return xxx_messageInfo_IdpProvider.Size(m) -} -func (m *IdpProvider) XXX_DiscardUnknown() { - xxx_messageInfo_IdpProvider.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpProvider proto.InternalMessageInfo - -func (m *IdpProvider) GetIdpConfigId() string { - if m != nil { - return m.IdpConfigId - } - return "" -} - -func (m *IdpProvider) GetIdpProvider_Type() IdpProviderType { - if m != nil { - return m.IdpProvider_Type - } - return IdpProviderType_IDPPROVIDERTYPE_UNSPECIFIED -} - -type LoginPolicyView struct { - Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"` - AllowUsernamePassword bool `protobuf:"varint,2,opt,name=allow_username_password,json=allowUsernamePassword,proto3" json:"allow_username_password,omitempty"` - AllowRegister bool `protobuf:"varint,3,opt,name=allow_register,json=allowRegister,proto3" json:"allow_register,omitempty"` - AllowExternalIdp bool `protobuf:"varint,4,opt,name=allow_external_idp,json=allowExternalIdp,proto3" json:"allow_external_idp,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - ForceMfa bool `protobuf:"varint,7,opt,name=force_mfa,json=forceMfa,proto3" json:"force_mfa,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LoginPolicyView) Reset() { *m = LoginPolicyView{} } -func (m *LoginPolicyView) String() string { return proto.CompactTextString(m) } -func (*LoginPolicyView) ProtoMessage() {} -func (*LoginPolicyView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{156} -} - -func (m *LoginPolicyView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LoginPolicyView.Unmarshal(m, b) -} -func (m *LoginPolicyView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LoginPolicyView.Marshal(b, m, deterministic) -} -func (m *LoginPolicyView) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoginPolicyView.Merge(m, src) -} -func (m *LoginPolicyView) XXX_Size() int { - return xxx_messageInfo_LoginPolicyView.Size(m) -} -func (m *LoginPolicyView) XXX_DiscardUnknown() { - xxx_messageInfo_LoginPolicyView.DiscardUnknown(m) -} - -var xxx_messageInfo_LoginPolicyView proto.InternalMessageInfo - -func (m *LoginPolicyView) GetDefault() bool { - if m != nil { - return m.Default - } - return false -} - -func (m *LoginPolicyView) GetAllowUsernamePassword() bool { - if m != nil { - return m.AllowUsernamePassword - } - return false -} - -func (m *LoginPolicyView) GetAllowRegister() bool { - if m != nil { - return m.AllowRegister - } - return false -} - -func (m *LoginPolicyView) GetAllowExternalIdp() bool { - if m != nil { - return m.AllowExternalIdp - } - return false -} - -func (m *LoginPolicyView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *LoginPolicyView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func (m *LoginPolicyView) GetForceMfa() bool { - if m != nil { - return m.ForceMfa - } - return false -} - -type IdpProviderView struct { - IdpConfigId string `protobuf:"bytes,1,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Type IdpType `protobuf:"varint,3,opt,name=type,proto3,enum=caos.zitadel.management.api.v1.IdpType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpProviderView) Reset() { *m = IdpProviderView{} } -func (m *IdpProviderView) String() string { return proto.CompactTextString(m) } -func (*IdpProviderView) ProtoMessage() {} -func (*IdpProviderView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{157} -} - -func (m *IdpProviderView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpProviderView.Unmarshal(m, b) -} -func (m *IdpProviderView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpProviderView.Marshal(b, m, deterministic) -} -func (m *IdpProviderView) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpProviderView.Merge(m, src) -} -func (m *IdpProviderView) XXX_Size() int { - return xxx_messageInfo_IdpProviderView.Size(m) -} -func (m *IdpProviderView) XXX_DiscardUnknown() { - xxx_messageInfo_IdpProviderView.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpProviderView proto.InternalMessageInfo - -func (m *IdpProviderView) GetIdpConfigId() string { - if m != nil { - return m.IdpConfigId - } - return "" -} - -func (m *IdpProviderView) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *IdpProviderView) GetType() IdpType { - if m != nil { - return m.Type - } - return IdpType_IDPTYPE_UNSPECIFIED -} - -type IdpProviderSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*IdpProviderView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpProviderSearchResponse) Reset() { *m = IdpProviderSearchResponse{} } -func (m *IdpProviderSearchResponse) String() string { return proto.CompactTextString(m) } -func (*IdpProviderSearchResponse) ProtoMessage() {} -func (*IdpProviderSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{158} -} - -func (m *IdpProviderSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpProviderSearchResponse.Unmarshal(m, b) -} -func (m *IdpProviderSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpProviderSearchResponse.Marshal(b, m, deterministic) -} -func (m *IdpProviderSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpProviderSearchResponse.Merge(m, src) -} -func (m *IdpProviderSearchResponse) XXX_Size() int { - return xxx_messageInfo_IdpProviderSearchResponse.Size(m) -} -func (m *IdpProviderSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_IdpProviderSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpProviderSearchResponse proto.InternalMessageInfo - -func (m *IdpProviderSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *IdpProviderSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *IdpProviderSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *IdpProviderSearchResponse) GetResult() []*IdpProviderView { - if m != nil { - return m.Result - } - return nil -} - -func (m *IdpProviderSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *IdpProviderSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type IdpProviderSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IdpProviderSearchRequest) Reset() { *m = IdpProviderSearchRequest{} } -func (m *IdpProviderSearchRequest) String() string { return proto.CompactTextString(m) } -func (*IdpProviderSearchRequest) ProtoMessage() {} -func (*IdpProviderSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{159} -} - -func (m *IdpProviderSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IdpProviderSearchRequest.Unmarshal(m, b) -} -func (m *IdpProviderSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IdpProviderSearchRequest.Marshal(b, m, deterministic) -} -func (m *IdpProviderSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_IdpProviderSearchRequest.Merge(m, src) -} -func (m *IdpProviderSearchRequest) XXX_Size() int { - return xxx_messageInfo_IdpProviderSearchRequest.Size(m) -} -func (m *IdpProviderSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_IdpProviderSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_IdpProviderSearchRequest proto.InternalMessageInfo - -func (m *IdpProviderSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *IdpProviderSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -type ExternalIDPSearchRequest struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExternalIDPSearchRequest) Reset() { *m = ExternalIDPSearchRequest{} } -func (m *ExternalIDPSearchRequest) String() string { return proto.CompactTextString(m) } -func (*ExternalIDPSearchRequest) ProtoMessage() {} -func (*ExternalIDPSearchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{160} -} - -func (m *ExternalIDPSearchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExternalIDPSearchRequest.Unmarshal(m, b) -} -func (m *ExternalIDPSearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExternalIDPSearchRequest.Marshal(b, m, deterministic) -} -func (m *ExternalIDPSearchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalIDPSearchRequest.Merge(m, src) -} -func (m *ExternalIDPSearchRequest) XXX_Size() int { - return xxx_messageInfo_ExternalIDPSearchRequest.Size(m) -} -func (m *ExternalIDPSearchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalIDPSearchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalIDPSearchRequest proto.InternalMessageInfo - -func (m *ExternalIDPSearchRequest) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ExternalIDPSearchRequest) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ExternalIDPSearchRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -type ExternalIDPSearchResponse struct { - Offset uint64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` - Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - TotalResult uint64 `protobuf:"varint,3,opt,name=total_result,json=totalResult,proto3" json:"total_result,omitempty"` - Result []*ExternalIDPView `protobuf:"bytes,4,rep,name=result,proto3" json:"result,omitempty"` - ProcessedSequence uint64 `protobuf:"varint,5,opt,name=processed_sequence,json=processedSequence,proto3" json:"processed_sequence,omitempty"` - ViewTimestamp *timestamp.Timestamp `protobuf:"bytes,6,opt,name=view_timestamp,json=viewTimestamp,proto3" json:"view_timestamp,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExternalIDPSearchResponse) Reset() { *m = ExternalIDPSearchResponse{} } -func (m *ExternalIDPSearchResponse) String() string { return proto.CompactTextString(m) } -func (*ExternalIDPSearchResponse) ProtoMessage() {} -func (*ExternalIDPSearchResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{161} -} - -func (m *ExternalIDPSearchResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExternalIDPSearchResponse.Unmarshal(m, b) -} -func (m *ExternalIDPSearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExternalIDPSearchResponse.Marshal(b, m, deterministic) -} -func (m *ExternalIDPSearchResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalIDPSearchResponse.Merge(m, src) -} -func (m *ExternalIDPSearchResponse) XXX_Size() int { - return xxx_messageInfo_ExternalIDPSearchResponse.Size(m) -} -func (m *ExternalIDPSearchResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalIDPSearchResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalIDPSearchResponse proto.InternalMessageInfo - -func (m *ExternalIDPSearchResponse) GetOffset() uint64 { - if m != nil { - return m.Offset - } - return 0 -} - -func (m *ExternalIDPSearchResponse) GetLimit() uint64 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ExternalIDPSearchResponse) GetTotalResult() uint64 { - if m != nil { - return m.TotalResult - } - return 0 -} - -func (m *ExternalIDPSearchResponse) GetResult() []*ExternalIDPView { - if m != nil { - return m.Result - } - return nil -} - -func (m *ExternalIDPSearchResponse) GetProcessedSequence() uint64 { - if m != nil { - return m.ProcessedSequence - } - return 0 -} - -func (m *ExternalIDPSearchResponse) GetViewTimestamp() *timestamp.Timestamp { - if m != nil { - return m.ViewTimestamp - } - return nil -} - -type ExternalIDPView struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - IdpConfigId string `protobuf:"bytes,2,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - ExternalUserId string `protobuf:"bytes,3,opt,name=external_user_id,json=externalUserId,proto3" json:"external_user_id,omitempty"` - IdpName string `protobuf:"bytes,4,opt,name=idp_name,json=idpName,proto3" json:"idp_name,omitempty"` - ExternalUserDisplayName string `protobuf:"bytes,5,opt,name=external_user_display_name,json=externalUserDisplayName,proto3" json:"external_user_display_name,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExternalIDPView) Reset() { *m = ExternalIDPView{} } -func (m *ExternalIDPView) String() string { return proto.CompactTextString(m) } -func (*ExternalIDPView) ProtoMessage() {} -func (*ExternalIDPView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{162} -} - -func (m *ExternalIDPView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExternalIDPView.Unmarshal(m, b) -} -func (m *ExternalIDPView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExternalIDPView.Marshal(b, m, deterministic) -} -func (m *ExternalIDPView) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalIDPView.Merge(m, src) -} -func (m *ExternalIDPView) XXX_Size() int { - return xxx_messageInfo_ExternalIDPView.Size(m) -} -func (m *ExternalIDPView) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalIDPView.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalIDPView proto.InternalMessageInfo - -func (m *ExternalIDPView) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ExternalIDPView) GetIdpConfigId() string { - if m != nil { - return m.IdpConfigId - } - return "" -} - -func (m *ExternalIDPView) GetExternalUserId() string { - if m != nil { - return m.ExternalUserId - } - return "" -} - -func (m *ExternalIDPView) GetIdpName() string { - if m != nil { - return m.IdpName - } - return "" -} - -func (m *ExternalIDPView) GetExternalUserDisplayName() string { - if m != nil { - return m.ExternalUserDisplayName - } - return "" -} - -func (m *ExternalIDPView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *ExternalIDPView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type ExternalIDPRemoveRequest struct { - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - IdpConfigId string `protobuf:"bytes,2,opt,name=idp_config_id,json=idpConfigId,proto3" json:"idp_config_id,omitempty"` - ExternalUserId string `protobuf:"bytes,3,opt,name=external_user_id,json=externalUserId,proto3" json:"external_user_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExternalIDPRemoveRequest) Reset() { *m = ExternalIDPRemoveRequest{} } -func (m *ExternalIDPRemoveRequest) String() string { return proto.CompactTextString(m) } -func (*ExternalIDPRemoveRequest) ProtoMessage() {} -func (*ExternalIDPRemoveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{163} -} - -func (m *ExternalIDPRemoveRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExternalIDPRemoveRequest.Unmarshal(m, b) -} -func (m *ExternalIDPRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExternalIDPRemoveRequest.Marshal(b, m, deterministic) -} -func (m *ExternalIDPRemoveRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalIDPRemoveRequest.Merge(m, src) -} -func (m *ExternalIDPRemoveRequest) XXX_Size() int { - return xxx_messageInfo_ExternalIDPRemoveRequest.Size(m) -} -func (m *ExternalIDPRemoveRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalIDPRemoveRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalIDPRemoveRequest proto.InternalMessageInfo - -func (m *ExternalIDPRemoveRequest) GetUserId() string { - if m != nil { - return m.UserId - } - return "" -} - -func (m *ExternalIDPRemoveRequest) GetIdpConfigId() string { - if m != nil { - return m.IdpConfigId - } - return "" -} - -func (m *ExternalIDPRemoveRequest) GetExternalUserId() string { - if m != nil { - return m.ExternalUserId - } - return "" -} - -type SecondFactorsResult struct { - SecondFactors []SecondFactorType `protobuf:"varint,1,rep,packed,name=second_factors,json=secondFactors,proto3,enum=caos.zitadel.management.api.v1.SecondFactorType" json:"second_factors,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecondFactorsResult) Reset() { *m = SecondFactorsResult{} } -func (m *SecondFactorsResult) String() string { return proto.CompactTextString(m) } -func (*SecondFactorsResult) ProtoMessage() {} -func (*SecondFactorsResult) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{164} -} - -func (m *SecondFactorsResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecondFactorsResult.Unmarshal(m, b) -} -func (m *SecondFactorsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecondFactorsResult.Marshal(b, m, deterministic) -} -func (m *SecondFactorsResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecondFactorsResult.Merge(m, src) -} -func (m *SecondFactorsResult) XXX_Size() int { - return xxx_messageInfo_SecondFactorsResult.Size(m) -} -func (m *SecondFactorsResult) XXX_DiscardUnknown() { - xxx_messageInfo_SecondFactorsResult.DiscardUnknown(m) -} - -var xxx_messageInfo_SecondFactorsResult proto.InternalMessageInfo - -func (m *SecondFactorsResult) GetSecondFactors() []SecondFactorType { - if m != nil { - return m.SecondFactors - } - return nil -} - -type SecondFactor struct { - SecondFactor SecondFactorType `protobuf:"varint,1,opt,name=second_factor,json=secondFactor,proto3,enum=caos.zitadel.management.api.v1.SecondFactorType" json:"second_factor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecondFactor) Reset() { *m = SecondFactor{} } -func (m *SecondFactor) String() string { return proto.CompactTextString(m) } -func (*SecondFactor) ProtoMessage() {} -func (*SecondFactor) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{165} -} - -func (m *SecondFactor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecondFactor.Unmarshal(m, b) -} -func (m *SecondFactor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecondFactor.Marshal(b, m, deterministic) -} -func (m *SecondFactor) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecondFactor.Merge(m, src) -} -func (m *SecondFactor) XXX_Size() int { - return xxx_messageInfo_SecondFactor.Size(m) -} -func (m *SecondFactor) XXX_DiscardUnknown() { - xxx_messageInfo_SecondFactor.DiscardUnknown(m) -} - -var xxx_messageInfo_SecondFactor proto.InternalMessageInfo - -func (m *SecondFactor) GetSecondFactor() SecondFactorType { - if m != nil { - return m.SecondFactor - } - return SecondFactorType_SECONDFACTORTYPE_UNSPECIFIED -} - -type MultiFactorsResult struct { - MultiFactors []MultiFactorType `protobuf:"varint,1,rep,packed,name=multi_factors,json=multiFactors,proto3,enum=caos.zitadel.management.api.v1.MultiFactorType" json:"multi_factors,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MultiFactorsResult) Reset() { *m = MultiFactorsResult{} } -func (m *MultiFactorsResult) String() string { return proto.CompactTextString(m) } -func (*MultiFactorsResult) ProtoMessage() {} -func (*MultiFactorsResult) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{166} -} - -func (m *MultiFactorsResult) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MultiFactorsResult.Unmarshal(m, b) -} -func (m *MultiFactorsResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MultiFactorsResult.Marshal(b, m, deterministic) -} -func (m *MultiFactorsResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiFactorsResult.Merge(m, src) -} -func (m *MultiFactorsResult) XXX_Size() int { - return xxx_messageInfo_MultiFactorsResult.Size(m) -} -func (m *MultiFactorsResult) XXX_DiscardUnknown() { - xxx_messageInfo_MultiFactorsResult.DiscardUnknown(m) -} - -var xxx_messageInfo_MultiFactorsResult proto.InternalMessageInfo - -func (m *MultiFactorsResult) GetMultiFactors() []MultiFactorType { - if m != nil { - return m.MultiFactors - } - return nil -} - -type MultiFactor struct { - MultiFactor MultiFactorType `protobuf:"varint,1,opt,name=multi_factor,json=multiFactor,proto3,enum=caos.zitadel.management.api.v1.MultiFactorType" json:"multi_factor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MultiFactor) Reset() { *m = MultiFactor{} } -func (m *MultiFactor) String() string { return proto.CompactTextString(m) } -func (*MultiFactor) ProtoMessage() {} -func (*MultiFactor) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{167} -} - -func (m *MultiFactor) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MultiFactor.Unmarshal(m, b) -} -func (m *MultiFactor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MultiFactor.Marshal(b, m, deterministic) -} -func (m *MultiFactor) XXX_Merge(src proto.Message) { - xxx_messageInfo_MultiFactor.Merge(m, src) -} -func (m *MultiFactor) XXX_Size() int { - return xxx_messageInfo_MultiFactor.Size(m) -} -func (m *MultiFactor) XXX_DiscardUnknown() { - xxx_messageInfo_MultiFactor.DiscardUnknown(m) -} - -var xxx_messageInfo_MultiFactor proto.InternalMessageInfo - -func (m *MultiFactor) GetMultiFactor() MultiFactorType { - if m != nil { - return m.MultiFactor - } - return MultiFactorType_MULTIFACTORTYPE_UNSPECIFIED -} - -type PasswordComplexityPolicy struct { - MinLength uint64 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,2,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,3,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,4,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,5,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - Sequence uint64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordComplexityPolicy) Reset() { *m = PasswordComplexityPolicy{} } -func (m *PasswordComplexityPolicy) String() string { return proto.CompactTextString(m) } -func (*PasswordComplexityPolicy) ProtoMessage() {} -func (*PasswordComplexityPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{168} -} - -func (m *PasswordComplexityPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordComplexityPolicy.Unmarshal(m, b) -} -func (m *PasswordComplexityPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordComplexityPolicy.Marshal(b, m, deterministic) -} -func (m *PasswordComplexityPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordComplexityPolicy.Merge(m, src) -} -func (m *PasswordComplexityPolicy) XXX_Size() int { - return xxx_messageInfo_PasswordComplexityPolicy.Size(m) -} -func (m *PasswordComplexityPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordComplexityPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordComplexityPolicy proto.InternalMessageInfo - -func (m *PasswordComplexityPolicy) GetMinLength() uint64 { - if m != nil { - return m.MinLength - } - return 0 -} - -func (m *PasswordComplexityPolicy) GetHasLowercase() bool { - if m != nil { - return m.HasLowercase - } - return false -} - -func (m *PasswordComplexityPolicy) GetHasUppercase() bool { - if m != nil { - return m.HasUppercase - } - return false -} - -func (m *PasswordComplexityPolicy) GetHasNumber() bool { - if m != nil { - return m.HasNumber - } - return false -} - -func (m *PasswordComplexityPolicy) GetHasSymbol() bool { - if m != nil { - return m.HasSymbol - } - return false -} - -func (m *PasswordComplexityPolicy) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PasswordComplexityPolicy) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *PasswordComplexityPolicy) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type PasswordComplexityPolicyRequest struct { - MinLength uint64 `protobuf:"varint,1,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,2,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,3,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,4,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,5,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordComplexityPolicyRequest) Reset() { *m = PasswordComplexityPolicyRequest{} } -func (m *PasswordComplexityPolicyRequest) String() string { return proto.CompactTextString(m) } -func (*PasswordComplexityPolicyRequest) ProtoMessage() {} -func (*PasswordComplexityPolicyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{169} -} - -func (m *PasswordComplexityPolicyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordComplexityPolicyRequest.Unmarshal(m, b) -} -func (m *PasswordComplexityPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordComplexityPolicyRequest.Marshal(b, m, deterministic) -} -func (m *PasswordComplexityPolicyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordComplexityPolicyRequest.Merge(m, src) -} -func (m *PasswordComplexityPolicyRequest) XXX_Size() int { - return xxx_messageInfo_PasswordComplexityPolicyRequest.Size(m) -} -func (m *PasswordComplexityPolicyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordComplexityPolicyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordComplexityPolicyRequest proto.InternalMessageInfo - -func (m *PasswordComplexityPolicyRequest) GetMinLength() uint64 { - if m != nil { - return m.MinLength - } - return 0 -} - -func (m *PasswordComplexityPolicyRequest) GetHasLowercase() bool { - if m != nil { - return m.HasLowercase - } - return false -} - -func (m *PasswordComplexityPolicyRequest) GetHasUppercase() bool { - if m != nil { - return m.HasUppercase - } - return false -} - -func (m *PasswordComplexityPolicyRequest) GetHasNumber() bool { - if m != nil { - return m.HasNumber - } - return false -} - -func (m *PasswordComplexityPolicyRequest) GetHasSymbol() bool { - if m != nil { - return m.HasSymbol - } - return false -} - -type PasswordComplexityPolicyView struct { - Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"` - MinLength uint64 `protobuf:"varint,2,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` - HasLowercase bool `protobuf:"varint,3,opt,name=has_lowercase,json=hasLowercase,proto3" json:"has_lowercase,omitempty"` - HasUppercase bool `protobuf:"varint,4,opt,name=has_uppercase,json=hasUppercase,proto3" json:"has_uppercase,omitempty"` - HasNumber bool `protobuf:"varint,5,opt,name=has_number,json=hasNumber,proto3" json:"has_number,omitempty"` - HasSymbol bool `protobuf:"varint,6,opt,name=has_symbol,json=hasSymbol,proto3" json:"has_symbol,omitempty"` - Sequence uint64 `protobuf:"varint,7,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,8,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,9,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordComplexityPolicyView) Reset() { *m = PasswordComplexityPolicyView{} } -func (m *PasswordComplexityPolicyView) String() string { return proto.CompactTextString(m) } -func (*PasswordComplexityPolicyView) ProtoMessage() {} -func (*PasswordComplexityPolicyView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{170} -} - -func (m *PasswordComplexityPolicyView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordComplexityPolicyView.Unmarshal(m, b) -} -func (m *PasswordComplexityPolicyView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordComplexityPolicyView.Marshal(b, m, deterministic) -} -func (m *PasswordComplexityPolicyView) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordComplexityPolicyView.Merge(m, src) -} -func (m *PasswordComplexityPolicyView) XXX_Size() int { - return xxx_messageInfo_PasswordComplexityPolicyView.Size(m) -} -func (m *PasswordComplexityPolicyView) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordComplexityPolicyView.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordComplexityPolicyView proto.InternalMessageInfo - -func (m *PasswordComplexityPolicyView) GetDefault() bool { - if m != nil { - return m.Default - } - return false -} - -func (m *PasswordComplexityPolicyView) GetMinLength() uint64 { - if m != nil { - return m.MinLength - } - return 0 -} - -func (m *PasswordComplexityPolicyView) GetHasLowercase() bool { - if m != nil { - return m.HasLowercase - } - return false -} - -func (m *PasswordComplexityPolicyView) GetHasUppercase() bool { - if m != nil { - return m.HasUppercase - } - return false -} - -func (m *PasswordComplexityPolicyView) GetHasNumber() bool { - if m != nil { - return m.HasNumber - } - return false -} - -func (m *PasswordComplexityPolicyView) GetHasSymbol() bool { - if m != nil { - return m.HasSymbol - } - return false -} - -func (m *PasswordComplexityPolicyView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PasswordComplexityPolicyView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *PasswordComplexityPolicyView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type PasswordAgePolicy struct { - MaxAgeDays uint64 `protobuf:"varint,1,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,2,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordAgePolicy) Reset() { *m = PasswordAgePolicy{} } -func (m *PasswordAgePolicy) String() string { return proto.CompactTextString(m) } -func (*PasswordAgePolicy) ProtoMessage() {} -func (*PasswordAgePolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{171} -} - -func (m *PasswordAgePolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordAgePolicy.Unmarshal(m, b) -} -func (m *PasswordAgePolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordAgePolicy.Marshal(b, m, deterministic) -} -func (m *PasswordAgePolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordAgePolicy.Merge(m, src) -} -func (m *PasswordAgePolicy) XXX_Size() int { - return xxx_messageInfo_PasswordAgePolicy.Size(m) -} -func (m *PasswordAgePolicy) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordAgePolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordAgePolicy proto.InternalMessageInfo - -func (m *PasswordAgePolicy) GetMaxAgeDays() uint64 { - if m != nil { - return m.MaxAgeDays - } - return 0 -} - -func (m *PasswordAgePolicy) GetExpireWarnDays() uint64 { - if m != nil { - return m.ExpireWarnDays - } - return 0 -} - -func (m *PasswordAgePolicy) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PasswordAgePolicy) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *PasswordAgePolicy) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type PasswordAgePolicyRequest struct { - MaxAgeDays uint64 `protobuf:"varint,1,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,2,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordAgePolicyRequest) Reset() { *m = PasswordAgePolicyRequest{} } -func (m *PasswordAgePolicyRequest) String() string { return proto.CompactTextString(m) } -func (*PasswordAgePolicyRequest) ProtoMessage() {} -func (*PasswordAgePolicyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{172} -} - -func (m *PasswordAgePolicyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordAgePolicyRequest.Unmarshal(m, b) -} -func (m *PasswordAgePolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordAgePolicyRequest.Marshal(b, m, deterministic) -} -func (m *PasswordAgePolicyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordAgePolicyRequest.Merge(m, src) -} -func (m *PasswordAgePolicyRequest) XXX_Size() int { - return xxx_messageInfo_PasswordAgePolicyRequest.Size(m) -} -func (m *PasswordAgePolicyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordAgePolicyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordAgePolicyRequest proto.InternalMessageInfo - -func (m *PasswordAgePolicyRequest) GetMaxAgeDays() uint64 { - if m != nil { - return m.MaxAgeDays - } - return 0 -} - -func (m *PasswordAgePolicyRequest) GetExpireWarnDays() uint64 { - if m != nil { - return m.ExpireWarnDays - } - return 0 -} - -type PasswordAgePolicyView struct { - Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"` - MaxAgeDays uint64 `protobuf:"varint,2,opt,name=max_age_days,json=maxAgeDays,proto3" json:"max_age_days,omitempty"` - ExpireWarnDays uint64 `protobuf:"varint,3,opt,name=expire_warn_days,json=expireWarnDays,proto3" json:"expire_warn_days,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordAgePolicyView) Reset() { *m = PasswordAgePolicyView{} } -func (m *PasswordAgePolicyView) String() string { return proto.CompactTextString(m) } -func (*PasswordAgePolicyView) ProtoMessage() {} -func (*PasswordAgePolicyView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{173} -} - -func (m *PasswordAgePolicyView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordAgePolicyView.Unmarshal(m, b) -} -func (m *PasswordAgePolicyView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordAgePolicyView.Marshal(b, m, deterministic) -} -func (m *PasswordAgePolicyView) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordAgePolicyView.Merge(m, src) -} -func (m *PasswordAgePolicyView) XXX_Size() int { - return xxx_messageInfo_PasswordAgePolicyView.Size(m) -} -func (m *PasswordAgePolicyView) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordAgePolicyView.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordAgePolicyView proto.InternalMessageInfo - -func (m *PasswordAgePolicyView) GetDefault() bool { - if m != nil { - return m.Default - } - return false -} - -func (m *PasswordAgePolicyView) GetMaxAgeDays() uint64 { - if m != nil { - return m.MaxAgeDays - } - return 0 -} - -func (m *PasswordAgePolicyView) GetExpireWarnDays() uint64 { - if m != nil { - return m.ExpireWarnDays - } - return 0 -} - -func (m *PasswordAgePolicyView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PasswordAgePolicyView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *PasswordAgePolicyView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type PasswordLockoutPolicy struct { - MaxAttempts uint64 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockoutFailure bool `protobuf:"varint,2,opt,name=show_lockout_failure,json=showLockoutFailure,proto3" json:"show_lockout_failure,omitempty"` - Sequence uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordLockoutPolicy) Reset() { *m = PasswordLockoutPolicy{} } -func (m *PasswordLockoutPolicy) String() string { return proto.CompactTextString(m) } -func (*PasswordLockoutPolicy) ProtoMessage() {} -func (*PasswordLockoutPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{174} -} - -func (m *PasswordLockoutPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordLockoutPolicy.Unmarshal(m, b) -} -func (m *PasswordLockoutPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordLockoutPolicy.Marshal(b, m, deterministic) -} -func (m *PasswordLockoutPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordLockoutPolicy.Merge(m, src) -} -func (m *PasswordLockoutPolicy) XXX_Size() int { - return xxx_messageInfo_PasswordLockoutPolicy.Size(m) -} -func (m *PasswordLockoutPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordLockoutPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordLockoutPolicy proto.InternalMessageInfo - -func (m *PasswordLockoutPolicy) GetMaxAttempts() uint64 { - if m != nil { - return m.MaxAttempts - } - return 0 -} - -func (m *PasswordLockoutPolicy) GetShowLockoutFailure() bool { - if m != nil { - return m.ShowLockoutFailure - } - return false -} - -func (m *PasswordLockoutPolicy) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PasswordLockoutPolicy) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *PasswordLockoutPolicy) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -type PasswordLockoutPolicyRequest struct { - MaxAttempts uint64 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockoutFailure bool `protobuf:"varint,2,opt,name=show_lockout_failure,json=showLockoutFailure,proto3" json:"show_lockout_failure,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordLockoutPolicyRequest) Reset() { *m = PasswordLockoutPolicyRequest{} } -func (m *PasswordLockoutPolicyRequest) String() string { return proto.CompactTextString(m) } -func (*PasswordLockoutPolicyRequest) ProtoMessage() {} -func (*PasswordLockoutPolicyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{175} -} - -func (m *PasswordLockoutPolicyRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordLockoutPolicyRequest.Unmarshal(m, b) -} -func (m *PasswordLockoutPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordLockoutPolicyRequest.Marshal(b, m, deterministic) -} -func (m *PasswordLockoutPolicyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordLockoutPolicyRequest.Merge(m, src) -} -func (m *PasswordLockoutPolicyRequest) XXX_Size() int { - return xxx_messageInfo_PasswordLockoutPolicyRequest.Size(m) -} -func (m *PasswordLockoutPolicyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordLockoutPolicyRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordLockoutPolicyRequest proto.InternalMessageInfo - -func (m *PasswordLockoutPolicyRequest) GetMaxAttempts() uint64 { - if m != nil { - return m.MaxAttempts - } - return 0 -} - -func (m *PasswordLockoutPolicyRequest) GetShowLockoutFailure() bool { - if m != nil { - return m.ShowLockoutFailure - } - return false -} - -type PasswordLockoutPolicyView struct { - Default bool `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"` - MaxAttempts uint64 `protobuf:"varint,2,opt,name=max_attempts,json=maxAttempts,proto3" json:"max_attempts,omitempty"` - ShowLockoutFailure bool `protobuf:"varint,3,opt,name=show_lockout_failure,json=showLockoutFailure,proto3" json:"show_lockout_failure,omitempty"` - Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` - CreationDate *timestamp.Timestamp `protobuf:"bytes,5,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` - ChangeDate *timestamp.Timestamp `protobuf:"bytes,6,opt,name=change_date,json=changeDate,proto3" json:"change_date,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasswordLockoutPolicyView) Reset() { *m = PasswordLockoutPolicyView{} } -func (m *PasswordLockoutPolicyView) String() string { return proto.CompactTextString(m) } -func (*PasswordLockoutPolicyView) ProtoMessage() {} -func (*PasswordLockoutPolicyView) Descriptor() ([]byte, []int) { - return fileDescriptor_edc174f991dc0a25, []int{176} -} - -func (m *PasswordLockoutPolicyView) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PasswordLockoutPolicyView.Unmarshal(m, b) -} -func (m *PasswordLockoutPolicyView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PasswordLockoutPolicyView.Marshal(b, m, deterministic) -} -func (m *PasswordLockoutPolicyView) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasswordLockoutPolicyView.Merge(m, src) -} -func (m *PasswordLockoutPolicyView) XXX_Size() int { - return xxx_messageInfo_PasswordLockoutPolicyView.Size(m) -} -func (m *PasswordLockoutPolicyView) XXX_DiscardUnknown() { - xxx_messageInfo_PasswordLockoutPolicyView.DiscardUnknown(m) -} - -var xxx_messageInfo_PasswordLockoutPolicyView proto.InternalMessageInfo - -func (m *PasswordLockoutPolicyView) GetDefault() bool { - if m != nil { - return m.Default - } - return false -} - -func (m *PasswordLockoutPolicyView) GetMaxAttempts() uint64 { - if m != nil { - return m.MaxAttempts - } - return 0 -} - -func (m *PasswordLockoutPolicyView) GetShowLockoutFailure() bool { - if m != nil { - return m.ShowLockoutFailure - } - return false -} - -func (m *PasswordLockoutPolicyView) GetSequence() uint64 { - if m != nil { - return m.Sequence - } - return 0 -} - -func (m *PasswordLockoutPolicyView) GetCreationDate() *timestamp.Timestamp { - if m != nil { - return m.CreationDate - } - return nil -} - -func (m *PasswordLockoutPolicyView) GetChangeDate() *timestamp.Timestamp { - if m != nil { - return m.ChangeDate - } - return nil -} - -func init() { - proto.RegisterEnum("caos.zitadel.management.api.v1.IamSetupStep", IamSetupStep_name, IamSetupStep_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.UserState", UserState_name, UserState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.Gender", Gender_name, Gender_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.MachineKeyType", MachineKeyType_name, MachineKeyType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.UserSearchKey", UserSearchKey_name, UserSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.SearchMethod", SearchMethod_name, SearchMethod_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.MfaType", MfaType_name, MfaType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.MFAState", MFAState_name, MFAState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.NotificationType", NotificationType_name, NotificationType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.PolicyState", PolicyState_name, PolicyState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OrgState", OrgState_name, OrgState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OrgDomainValidationType", OrgDomainValidationType_name, OrgDomainValidationType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OrgDomainSearchKey", OrgDomainSearchKey_name, OrgDomainSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OrgMemberSearchKey", OrgMemberSearchKey_name, OrgMemberSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectSearchKey", ProjectSearchKey_name, ProjectSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectState", ProjectState_name, ProjectState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectRoleSearchKey", ProjectRoleSearchKey_name, ProjectRoleSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectMemberSearchKey", ProjectMemberSearchKey_name, ProjectMemberSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.AppState", AppState_name, AppState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCVersion", OIDCVersion_name, OIDCVersion_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCTokenType", OIDCTokenType_name, OIDCTokenType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCResponseType", OIDCResponseType_name, OIDCResponseType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCGrantType", OIDCGrantType_name, OIDCGrantType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCApplicationType", OIDCApplicationType_name, OIDCApplicationType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCAuthMethodType", OIDCAuthMethodType_name, OIDCAuthMethodType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ApplicationSearchKey", ApplicationSearchKey_name, ApplicationSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectGrantState", ProjectGrantState_name, ProjectGrantState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectGrantSearchKey", ProjectGrantSearchKey_name, ProjectGrantSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectGrantMemberSearchKey", ProjectGrantMemberSearchKey_name, ProjectGrantMemberSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.UserGrantState", UserGrantState_name, UserGrantState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.UserGrantSearchKey", UserGrantSearchKey_name, UserGrantSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.UserMembershipSearchKey", UserMembershipSearchKey_name, UserMembershipSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.MemberType", MemberType_name, MemberType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.IdpStylingType", IdpStylingType_name, IdpStylingType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.IdpState", IdpState_name, IdpState_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.OIDCMappingField", OIDCMappingField_name, OIDCMappingField_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.IdpSearchKey", IdpSearchKey_name, IdpSearchKey_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.IdpType", IdpType_name, IdpType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.IdpProviderType", IdpProviderType_name, IdpProviderType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.ProjectType", ProjectType_name, ProjectType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.SecondFactorType", SecondFactorType_name, SecondFactorType_value) - proto.RegisterEnum("caos.zitadel.management.api.v1.MultiFactorType", MultiFactorType_name, MultiFactorType_value) - proto.RegisterType((*ZitadelDocs)(nil), "caos.zitadel.management.api.v1.ZitadelDocs") - proto.RegisterType((*Iam)(nil), "caos.zitadel.management.api.v1.Iam") - proto.RegisterType((*ChangeRequest)(nil), "caos.zitadel.management.api.v1.ChangeRequest") - proto.RegisterType((*Changes)(nil), "caos.zitadel.management.api.v1.Changes") - proto.RegisterType((*Change)(nil), "caos.zitadel.management.api.v1.Change") - proto.RegisterType((*ApplicationID)(nil), "caos.zitadel.management.api.v1.ApplicationID") - proto.RegisterType((*ProjectID)(nil), "caos.zitadel.management.api.v1.ProjectID") - proto.RegisterType((*UserID)(nil), "caos.zitadel.management.api.v1.UserID") - proto.RegisterType((*LoginName)(nil), "caos.zitadel.management.api.v1.LoginName") - proto.RegisterType((*UniqueUserRequest)(nil), "caos.zitadel.management.api.v1.UniqueUserRequest") - proto.RegisterType((*UniqueUserResponse)(nil), "caos.zitadel.management.api.v1.UniqueUserResponse") - proto.RegisterType((*CreateUserRequest)(nil), "caos.zitadel.management.api.v1.CreateUserRequest") - proto.RegisterType((*CreateHumanRequest)(nil), "caos.zitadel.management.api.v1.CreateHumanRequest") - proto.RegisterType((*CreateMachineRequest)(nil), "caos.zitadel.management.api.v1.CreateMachineRequest") - proto.RegisterType((*UserResponse)(nil), "caos.zitadel.management.api.v1.UserResponse") - proto.RegisterType((*UserView)(nil), "caos.zitadel.management.api.v1.UserView") - proto.RegisterType((*HumanResponse)(nil), "caos.zitadel.management.api.v1.HumanResponse") - proto.RegisterType((*HumanView)(nil), "caos.zitadel.management.api.v1.HumanView") - proto.RegisterType((*MachineResponse)(nil), "caos.zitadel.management.api.v1.MachineResponse") - proto.RegisterType((*MachineView)(nil), "caos.zitadel.management.api.v1.MachineView") - proto.RegisterType((*UpdateMachineRequest)(nil), "caos.zitadel.management.api.v1.UpdateMachineRequest") - proto.RegisterType((*AddMachineKeyRequest)(nil), "caos.zitadel.management.api.v1.AddMachineKeyRequest") - proto.RegisterType((*AddMachineKeyResponse)(nil), "caos.zitadel.management.api.v1.AddMachineKeyResponse") - proto.RegisterType((*MachineKeyIDRequest)(nil), "caos.zitadel.management.api.v1.MachineKeyIDRequest") - proto.RegisterType((*MachineKeyView)(nil), "caos.zitadel.management.api.v1.MachineKeyView") - proto.RegisterType((*MachineKeySearchRequest)(nil), "caos.zitadel.management.api.v1.MachineKeySearchRequest") - proto.RegisterType((*MachineKeySearchResponse)(nil), "caos.zitadel.management.api.v1.MachineKeySearchResponse") - proto.RegisterType((*UserSearchRequest)(nil), "caos.zitadel.management.api.v1.UserSearchRequest") - proto.RegisterType((*UserSearchQuery)(nil), "caos.zitadel.management.api.v1.UserSearchQuery") - proto.RegisterType((*UserSearchResponse)(nil), "caos.zitadel.management.api.v1.UserSearchResponse") - proto.RegisterType((*UserProfile)(nil), "caos.zitadel.management.api.v1.UserProfile") - proto.RegisterType((*UserProfileView)(nil), "caos.zitadel.management.api.v1.UserProfileView") - proto.RegisterType((*UpdateUserProfileRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserProfileRequest") - proto.RegisterType((*UpdateUserUserNameRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserUserNameRequest") - proto.RegisterType((*UserEmail)(nil), "caos.zitadel.management.api.v1.UserEmail") - proto.RegisterType((*UserEmailView)(nil), "caos.zitadel.management.api.v1.UserEmailView") - proto.RegisterType((*UpdateUserEmailRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserEmailRequest") - proto.RegisterType((*UserPhone)(nil), "caos.zitadel.management.api.v1.UserPhone") - proto.RegisterType((*UserPhoneView)(nil), "caos.zitadel.management.api.v1.UserPhoneView") - proto.RegisterType((*UpdateUserPhoneRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserPhoneRequest") - proto.RegisterType((*UserAddress)(nil), "caos.zitadel.management.api.v1.UserAddress") - proto.RegisterType((*UserAddressView)(nil), "caos.zitadel.management.api.v1.UserAddressView") - proto.RegisterType((*UpdateUserAddressRequest)(nil), "caos.zitadel.management.api.v1.UpdateUserAddressRequest") - proto.RegisterType((*UserMultiFactors)(nil), "caos.zitadel.management.api.v1.UserMultiFactors") - proto.RegisterType((*UserMultiFactor)(nil), "caos.zitadel.management.api.v1.UserMultiFactor") - proto.RegisterType((*PasswordRequest)(nil), "caos.zitadel.management.api.v1.PasswordRequest") - proto.RegisterType((*SetPasswordNotificationRequest)(nil), "caos.zitadel.management.api.v1.SetPasswordNotificationRequest") - proto.RegisterType((*InitialMailRequest)(nil), "caos.zitadel.management.api.v1.InitialMailRequest") - proto.RegisterType((*OrgIamPolicyView)(nil), "caos.zitadel.management.api.v1.OrgIamPolicyView") - proto.RegisterType((*OrgCreateRequest)(nil), "caos.zitadel.management.api.v1.OrgCreateRequest") - proto.RegisterType((*Org)(nil), "caos.zitadel.management.api.v1.Org") - proto.RegisterType((*OrgView)(nil), "caos.zitadel.management.api.v1.OrgView") - proto.RegisterType((*Domain)(nil), "caos.zitadel.management.api.v1.Domain") - proto.RegisterType((*OrgDomain)(nil), "caos.zitadel.management.api.v1.OrgDomain") - proto.RegisterType((*OrgDomainView)(nil), "caos.zitadel.management.api.v1.OrgDomainView") - proto.RegisterType((*AddOrgDomainRequest)(nil), "caos.zitadel.management.api.v1.AddOrgDomainRequest") - proto.RegisterType((*OrgDomainValidationRequest)(nil), "caos.zitadel.management.api.v1.OrgDomainValidationRequest") - proto.RegisterType((*OrgDomainValidationResponse)(nil), "caos.zitadel.management.api.v1.OrgDomainValidationResponse") - proto.RegisterType((*ValidateOrgDomainRequest)(nil), "caos.zitadel.management.api.v1.ValidateOrgDomainRequest") - proto.RegisterType((*PrimaryOrgDomainRequest)(nil), "caos.zitadel.management.api.v1.PrimaryOrgDomainRequest") - proto.RegisterType((*RemoveOrgDomainRequest)(nil), "caos.zitadel.management.api.v1.RemoveOrgDomainRequest") - proto.RegisterType((*OrgDomainSearchResponse)(nil), "caos.zitadel.management.api.v1.OrgDomainSearchResponse") - proto.RegisterType((*OrgDomainSearchRequest)(nil), "caos.zitadel.management.api.v1.OrgDomainSearchRequest") - proto.RegisterType((*OrgDomainSearchQuery)(nil), "caos.zitadel.management.api.v1.OrgDomainSearchQuery") - proto.RegisterType((*OrgMemberRoles)(nil), "caos.zitadel.management.api.v1.OrgMemberRoles") - proto.RegisterType((*OrgMember)(nil), "caos.zitadel.management.api.v1.OrgMember") - proto.RegisterType((*AddOrgMemberRequest)(nil), "caos.zitadel.management.api.v1.AddOrgMemberRequest") - proto.RegisterType((*ChangeOrgMemberRequest)(nil), "caos.zitadel.management.api.v1.ChangeOrgMemberRequest") - proto.RegisterType((*RemoveOrgMemberRequest)(nil), "caos.zitadel.management.api.v1.RemoveOrgMemberRequest") - proto.RegisterType((*OrgMemberSearchResponse)(nil), "caos.zitadel.management.api.v1.OrgMemberSearchResponse") - proto.RegisterType((*OrgMemberView)(nil), "caos.zitadel.management.api.v1.OrgMemberView") - proto.RegisterType((*OrgMemberSearchRequest)(nil), "caos.zitadel.management.api.v1.OrgMemberSearchRequest") - proto.RegisterType((*OrgMemberSearchQuery)(nil), "caos.zitadel.management.api.v1.OrgMemberSearchQuery") - proto.RegisterType((*ProjectCreateRequest)(nil), "caos.zitadel.management.api.v1.ProjectCreateRequest") - proto.RegisterType((*ProjectUpdateRequest)(nil), "caos.zitadel.management.api.v1.ProjectUpdateRequest") - proto.RegisterType((*ProjectSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectSearchResponse") - proto.RegisterType((*ProjectView)(nil), "caos.zitadel.management.api.v1.ProjectView") - proto.RegisterType((*ProjectSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectSearchRequest") - proto.RegisterType((*ProjectSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectSearchQuery") - proto.RegisterType((*Projects)(nil), "caos.zitadel.management.api.v1.Projects") - proto.RegisterType((*Project)(nil), "caos.zitadel.management.api.v1.Project") - proto.RegisterType((*ProjectMemberRoles)(nil), "caos.zitadel.management.api.v1.ProjectMemberRoles") - proto.RegisterType((*ProjectMember)(nil), "caos.zitadel.management.api.v1.ProjectMember") - proto.RegisterType((*ProjectMemberAdd)(nil), "caos.zitadel.management.api.v1.ProjectMemberAdd") - proto.RegisterType((*ProjectMemberChange)(nil), "caos.zitadel.management.api.v1.ProjectMemberChange") - proto.RegisterType((*ProjectMemberRemove)(nil), "caos.zitadel.management.api.v1.ProjectMemberRemove") - proto.RegisterType((*ProjectRoleAdd)(nil), "caos.zitadel.management.api.v1.ProjectRoleAdd") - proto.RegisterType((*ProjectRoleAddBulk)(nil), "caos.zitadel.management.api.v1.ProjectRoleAddBulk") - proto.RegisterType((*ProjectRoleChange)(nil), "caos.zitadel.management.api.v1.ProjectRoleChange") - proto.RegisterType((*ProjectRole)(nil), "caos.zitadel.management.api.v1.ProjectRole") - proto.RegisterType((*ProjectRoleView)(nil), "caos.zitadel.management.api.v1.ProjectRoleView") - proto.RegisterType((*ProjectRoleRemove)(nil), "caos.zitadel.management.api.v1.ProjectRoleRemove") - proto.RegisterType((*ProjectRoleSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectRoleSearchResponse") - proto.RegisterType((*ProjectRoleSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectRoleSearchRequest") - proto.RegisterType((*ProjectRoleSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectRoleSearchQuery") - proto.RegisterType((*ProjectMemberView)(nil), "caos.zitadel.management.api.v1.ProjectMemberView") - proto.RegisterType((*ProjectMemberSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectMemberSearchResponse") - proto.RegisterType((*ProjectMemberSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectMemberSearchRequest") - proto.RegisterType((*ProjectMemberSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectMemberSearchQuery") - proto.RegisterType((*Application)(nil), "caos.zitadel.management.api.v1.Application") - proto.RegisterType((*ApplicationUpdate)(nil), "caos.zitadel.management.api.v1.ApplicationUpdate") - proto.RegisterType((*OIDCConfig)(nil), "caos.zitadel.management.api.v1.OIDCConfig") - proto.RegisterType((*OIDCApplicationCreate)(nil), "caos.zitadel.management.api.v1.OIDCApplicationCreate") - proto.RegisterType((*OIDCConfigUpdate)(nil), "caos.zitadel.management.api.v1.OIDCConfigUpdate") - proto.RegisterType((*ClientSecret)(nil), "caos.zitadel.management.api.v1.ClientSecret") - proto.RegisterType((*ApplicationView)(nil), "caos.zitadel.management.api.v1.ApplicationView") - proto.RegisterType((*ApplicationSearchResponse)(nil), "caos.zitadel.management.api.v1.ApplicationSearchResponse") - proto.RegisterType((*ApplicationSearchRequest)(nil), "caos.zitadel.management.api.v1.ApplicationSearchRequest") - proto.RegisterType((*ApplicationSearchQuery)(nil), "caos.zitadel.management.api.v1.ApplicationSearchQuery") - proto.RegisterType((*ProjectGrant)(nil), "caos.zitadel.management.api.v1.ProjectGrant") - proto.RegisterType((*ProjectGrantCreate)(nil), "caos.zitadel.management.api.v1.ProjectGrantCreate") - proto.RegisterType((*ProjectGrantUpdate)(nil), "caos.zitadel.management.api.v1.ProjectGrantUpdate") - proto.RegisterType((*ProjectGrantID)(nil), "caos.zitadel.management.api.v1.ProjectGrantID") - proto.RegisterType((*ProjectGrantView)(nil), "caos.zitadel.management.api.v1.ProjectGrantView") - proto.RegisterType((*ProjectGrantSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectGrantSearchResponse") - proto.RegisterType((*GrantedProjectSearchRequest)(nil), "caos.zitadel.management.api.v1.GrantedProjectSearchRequest") - proto.RegisterType((*ProjectGrantSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectGrantSearchRequest") - proto.RegisterType((*ProjectGrantSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectGrantSearchQuery") - proto.RegisterType((*ProjectGrantMemberRoles)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberRoles") - proto.RegisterType((*ProjectGrantMember)(nil), "caos.zitadel.management.api.v1.ProjectGrantMember") - proto.RegisterType((*ProjectGrantMemberAdd)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberAdd") - proto.RegisterType((*ProjectGrantMemberChange)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberChange") - proto.RegisterType((*ProjectGrantMemberRemove)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberRemove") - proto.RegisterType((*ProjectGrantMemberView)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberView") - proto.RegisterType((*ProjectGrantMemberSearchResponse)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberSearchResponse") - proto.RegisterType((*ProjectGrantMemberSearchRequest)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberSearchRequest") - proto.RegisterType((*ProjectGrantMemberSearchQuery)(nil), "caos.zitadel.management.api.v1.ProjectGrantMemberSearchQuery") - proto.RegisterType((*UserGrant)(nil), "caos.zitadel.management.api.v1.UserGrant") - proto.RegisterType((*UserGrantCreate)(nil), "caos.zitadel.management.api.v1.UserGrantCreate") - proto.RegisterType((*UserGrantUpdate)(nil), "caos.zitadel.management.api.v1.UserGrantUpdate") - proto.RegisterType((*UserGrantRemoveBulk)(nil), "caos.zitadel.management.api.v1.UserGrantRemoveBulk") - proto.RegisterType((*UserGrantID)(nil), "caos.zitadel.management.api.v1.UserGrantID") - proto.RegisterType((*UserGrantView)(nil), "caos.zitadel.management.api.v1.UserGrantView") - proto.RegisterType((*UserGrantSearchResponse)(nil), "caos.zitadel.management.api.v1.UserGrantSearchResponse") - proto.RegisterType((*UserGrantSearchRequest)(nil), "caos.zitadel.management.api.v1.UserGrantSearchRequest") - proto.RegisterType((*UserGrantSearchQuery)(nil), "caos.zitadel.management.api.v1.UserGrantSearchQuery") - proto.RegisterType((*UserMembershipSearchResponse)(nil), "caos.zitadel.management.api.v1.UserMembershipSearchResponse") - proto.RegisterType((*UserMembershipSearchRequest)(nil), "caos.zitadel.management.api.v1.UserMembershipSearchRequest") - proto.RegisterType((*UserMembershipSearchQuery)(nil), "caos.zitadel.management.api.v1.UserMembershipSearchQuery") - proto.RegisterType((*UserMembershipView)(nil), "caos.zitadel.management.api.v1.UserMembershipView") - proto.RegisterType((*IdpID)(nil), "caos.zitadel.management.api.v1.IdpID") - proto.RegisterType((*Idp)(nil), "caos.zitadel.management.api.v1.Idp") - proto.RegisterType((*IdpUpdate)(nil), "caos.zitadel.management.api.v1.IdpUpdate") - proto.RegisterType((*OidcIdpConfig)(nil), "caos.zitadel.management.api.v1.OidcIdpConfig") - proto.RegisterType((*OidcIdpConfigCreate)(nil), "caos.zitadel.management.api.v1.OidcIdpConfigCreate") - proto.RegisterType((*OidcIdpConfigUpdate)(nil), "caos.zitadel.management.api.v1.OidcIdpConfigUpdate") - proto.RegisterType((*IdpSearchResponse)(nil), "caos.zitadel.management.api.v1.IdpSearchResponse") - proto.RegisterType((*IdpView)(nil), "caos.zitadel.management.api.v1.IdpView") - proto.RegisterType((*OidcIdpConfigView)(nil), "caos.zitadel.management.api.v1.OidcIdpConfigView") - proto.RegisterType((*IdpSearchRequest)(nil), "caos.zitadel.management.api.v1.IdpSearchRequest") - proto.RegisterType((*IdpSearchQuery)(nil), "caos.zitadel.management.api.v1.IdpSearchQuery") - proto.RegisterType((*LoginPolicy)(nil), "caos.zitadel.management.api.v1.LoginPolicy") - proto.RegisterType((*LoginPolicyRequest)(nil), "caos.zitadel.management.api.v1.LoginPolicyRequest") - proto.RegisterType((*IdpProviderID)(nil), "caos.zitadel.management.api.v1.IdpProviderID") - proto.RegisterType((*IdpProviderAdd)(nil), "caos.zitadel.management.api.v1.IdpProviderAdd") - proto.RegisterType((*IdpProvider)(nil), "caos.zitadel.management.api.v1.IdpProvider") - proto.RegisterType((*LoginPolicyView)(nil), "caos.zitadel.management.api.v1.LoginPolicyView") - proto.RegisterType((*IdpProviderView)(nil), "caos.zitadel.management.api.v1.IdpProviderView") - proto.RegisterType((*IdpProviderSearchResponse)(nil), "caos.zitadel.management.api.v1.IdpProviderSearchResponse") - proto.RegisterType((*IdpProviderSearchRequest)(nil), "caos.zitadel.management.api.v1.IdpProviderSearchRequest") - proto.RegisterType((*ExternalIDPSearchRequest)(nil), "caos.zitadel.management.api.v1.ExternalIDPSearchRequest") - proto.RegisterType((*ExternalIDPSearchResponse)(nil), "caos.zitadel.management.api.v1.ExternalIDPSearchResponse") - proto.RegisterType((*ExternalIDPView)(nil), "caos.zitadel.management.api.v1.ExternalIDPView") - proto.RegisterType((*ExternalIDPRemoveRequest)(nil), "caos.zitadel.management.api.v1.ExternalIDPRemoveRequest") - proto.RegisterType((*SecondFactorsResult)(nil), "caos.zitadel.management.api.v1.SecondFactorsResult") - proto.RegisterType((*SecondFactor)(nil), "caos.zitadel.management.api.v1.SecondFactor") - proto.RegisterType((*MultiFactorsResult)(nil), "caos.zitadel.management.api.v1.MultiFactorsResult") - proto.RegisterType((*MultiFactor)(nil), "caos.zitadel.management.api.v1.MultiFactor") - proto.RegisterType((*PasswordComplexityPolicy)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicy") - proto.RegisterType((*PasswordComplexityPolicyRequest)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicyRequest") - proto.RegisterType((*PasswordComplexityPolicyView)(nil), "caos.zitadel.management.api.v1.PasswordComplexityPolicyView") - proto.RegisterType((*PasswordAgePolicy)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicy") - proto.RegisterType((*PasswordAgePolicyRequest)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicyRequest") - proto.RegisterType((*PasswordAgePolicyView)(nil), "caos.zitadel.management.api.v1.PasswordAgePolicyView") - proto.RegisterType((*PasswordLockoutPolicy)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicy") - proto.RegisterType((*PasswordLockoutPolicyRequest)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicyRequest") - proto.RegisterType((*PasswordLockoutPolicyView)(nil), "caos.zitadel.management.api.v1.PasswordLockoutPolicyView") -} - -func init() { proto.RegisterFile("management.proto", fileDescriptor_edc174f991dc0a25) } - -var fileDescriptor_edc174f991dc0a25 = []byte{ - // 12438 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7d, 0x79, 0x70, 0x1b, 0x59, - 0x7a, 0xdf, 0x34, 0x40, 0x82, 0xe0, 0x07, 0x1e, 0xe0, 0xe3, 0x05, 0x82, 0x3a, 0xa8, 0x1e, 0x69, - 0x24, 0x61, 0x24, 0x42, 0xe2, 0x8c, 0x66, 0x46, 0x33, 0xb3, 0x3b, 0x03, 0x12, 0x10, 0x85, 0x15, - 0x49, 0x60, 0x00, 0x6a, 0xe4, 0xd9, 0x8d, 0x0d, 0xb7, 0xd0, 0x4d, 0xb2, 0x2d, 0x5c, 0x8b, 0x06, - 0xa5, 0xe5, 0x2a, 0x63, 0xc7, 0xf2, 0xb1, 0x8e, 0xaf, 0xd8, 0xbb, 0x76, 0xd6, 0xc7, 0x7a, 0x9d, - 0xf2, 0x66, 0xb3, 0xb1, 0x1d, 0xdb, 0x7f, 0xd8, 0xda, 0xac, 0xed, 0x8a, 0x5d, 0x65, 0x3b, 0xb6, - 0xe3, 0x24, 0xae, 0x72, 0xd6, 0xe5, 0x38, 0xe5, 0xb8, 0x9c, 0xab, 0x5c, 0x89, 0x2b, 0x15, 0x27, - 0x15, 0x57, 0x25, 0xbb, 0xf9, 0x27, 0xf5, 0x8e, 0xee, 0x7e, 0x7d, 0xa1, 0xbb, 0x49, 0x91, 0xe2, - 0xce, 0xce, 0x5f, 0x24, 0xde, 0xf9, 0x7b, 0xdf, 0xfb, 0xae, 0xf7, 0xbd, 0xd7, 0xef, 0x41, 0xb2, - 0x29, 0xb5, 0xa4, 0x6d, 0xa5, 0xa9, 0xb4, 0x7a, 0x8b, 0x9d, 0x6e, 0xbb, 0xd7, 0x46, 0xa7, 0xea, - 0x52, 0x5b, 0x5b, 0xfc, 0xb8, 0xda, 0x93, 0x64, 0xa5, 0xb1, 0xc8, 0x65, 0x4b, 0x1d, 0x75, 0xf1, - 0xfe, 0xd5, 0xf4, 0x89, 0xed, 0x76, 0x7b, 0xbb, 0xa1, 0x64, 0xa5, 0x8e, 0x9a, 0x95, 0x5a, 0xad, - 0x76, 0x4f, 0xea, 0xa9, 0xed, 0x96, 0x46, 0x6b, 0xa7, 0xe7, 0x59, 0x2e, 0xf9, 0x75, 0x77, 0x77, - 0x2b, 0xab, 0x34, 0x3b, 0xbd, 0x3d, 0x96, 0x79, 0xc2, 0x9e, 0xa9, 0xf5, 0xba, 0xbb, 0x75, 0xd6, - 0x71, 0xfa, 0xb4, 0x3d, 0xb7, 0xa7, 0x36, 0x15, 0xad, 0x27, 0x35, 0x3b, 0xac, 0xc0, 0x25, 0xf2, - 0xa7, 0x7e, 0x79, 0x5b, 0x69, 0x5d, 0xd6, 0x1e, 0x48, 0xdb, 0xdb, 0x4a, 0x37, 0xdb, 0xee, 0x90, - 0xde, 0x5d, 0x90, 0xcc, 0xde, 0x97, 0x1a, 0xaa, 0x2c, 0xf5, 0x94, 0xac, 0xfe, 0x0f, 0xcb, 0x48, - 0x49, 0xbb, 0xbd, 0x1d, 0x5a, 0x4f, 0xaf, 0xce, 0x72, 0x26, 0xc9, 0x9f, 0x6c, 0x53, 0xd1, 0x34, - 0x69, 0x9b, 0x15, 0x17, 0x37, 0x21, 0xf1, 0x61, 0x4a, 0x8c, 0x7c, 0xbb, 0xae, 0xa1, 0x19, 0x88, - 0xa9, 0x9a, 0xb6, 0xab, 0x74, 0x53, 0xc2, 0x82, 0x70, 0x61, 0xb8, 0xc2, 0x7e, 0xa1, 0xcb, 0x80, - 0x64, 0x55, 0xab, 0xb7, 0xef, 0x2b, 0xdd, 0xbd, 0x9a, 0xd2, 0x92, 0x3b, 0x6d, 0xb5, 0xd5, 0x4b, - 0x45, 0x48, 0x99, 0x09, 0x23, 0xa7, 0xc0, 0x32, 0xc4, 0xff, 0x25, 0x40, 0xb4, 0x28, 0x35, 0x91, - 0x08, 0xa3, 0xdb, 0x8d, 0xf6, 0x5d, 0xa9, 0x51, 0x6b, 0x77, 0xb7, 0x6b, 0xaa, 0xcc, 0x5a, 0x4d, - 0xd0, 0xc4, 0x52, 0x77, 0xbb, 0x28, 0xa3, 0xb3, 0x30, 0xa6, 0x4a, 0xcd, 0x5a, 0xa7, 0xdb, 0xfe, - 0x16, 0xa5, 0xde, 0xc3, 0x85, 0x68, 0xb3, 0x23, 0xaa, 0xd4, 0x2c, 0xd3, 0xc4, 0xa2, 0x8c, 0xd6, - 0x20, 0xa1, 0x29, 0xbd, 0xda, 0x6e, 0xa7, 0x26, 0xb7, 0x5b, 0x4a, 0x2a, 0xba, 0x20, 0x5c, 0x18, - 0x5b, 0xba, 0xb4, 0xd8, 0x7f, 0x36, 0x17, 0x8b, 0x52, 0xb3, 0xaa, 0xf4, 0x76, 0x3b, 0xd5, 0x9e, - 0xd2, 0xa9, 0x0c, 0x6b, 0x4a, 0xef, 0x76, 0x27, 0xdf, 0x6e, 0x29, 0xa8, 0x02, 0x63, 0xac, 0x35, - 0xad, 0x27, 0x75, 0x7b, 0x8a, 0x9c, 0x1a, 0xd8, 0x47, 0x83, 0x23, 0xa4, 0xc1, 0x2a, 0x6d, 0x41, - 0xfc, 0x84, 0x00, 0xa3, 0x2b, 0x3b, 0x52, 0x6b, 0x5b, 0xa9, 0x28, 0x1f, 0xdd, 0x55, 0xb4, 0x1e, - 0x1a, 0x83, 0x88, 0x31, 0xe4, 0x88, 0x2a, 0xa3, 0x69, 0x88, 0x69, 0x4a, 0xdd, 0x1c, 0xe1, 0xa0, - 0xa6, 0xd4, 0x8b, 0x32, 0x9a, 0x82, 0xc1, 0x86, 0xda, 0x54, 0x7b, 0x64, 0x50, 0x03, 0x15, 0xfa, - 0x03, 0x9d, 0x87, 0x71, 0x0d, 0xb7, 0xd3, 0xaa, 0x2b, 0xb5, 0xf6, 0xd6, 0x96, 0xa6, 0xf4, 0x08, - 0xc6, 0x81, 0xca, 0x98, 0x9e, 0x5c, 0x22, 0xa9, 0x28, 0x09, 0x51, 0x49, 0xab, 0xa7, 0x06, 0x17, - 0x84, 0x0b, 0xf1, 0x0a, 0xfe, 0x57, 0xdc, 0x83, 0x21, 0x0a, 0x44, 0x43, 0x6f, 0xc2, 0x50, 0x9d, - 0xfe, 0x9b, 0x12, 0x16, 0xa2, 0x17, 0x12, 0x4b, 0xcf, 0xf9, 0x8d, 0x90, 0x0d, 0x41, 0xaf, 0x86, - 0x39, 0x82, 0x75, 0x1f, 0x21, 0xdd, 0xb3, 0x5f, 0xee, 0xa8, 0xc5, 0xbf, 0x1b, 0x81, 0x18, 0x6d, - 0x01, 0xbd, 0x06, 0x09, 0xda, 0x46, 0x0d, 0x73, 0x27, 0x21, 0x43, 0x62, 0x29, 0xbd, 0x48, 0xc5, - 0x60, 0x51, 0x17, 0x83, 0xc5, 0x4d, 0x5d, 0x0c, 0x2a, 0x40, 0x8b, 0xe7, 0xa5, 0x9e, 0x82, 0xf2, - 0x00, 0xca, 0x7d, 0xa5, 0xd5, 0xab, 0xf5, 0xf6, 0x3a, 0x0a, 0xe9, 0x39, 0xb1, 0x74, 0xce, 0x0a, - 0x9d, 0xe1, 0x5d, 0x6b, 0xd7, 0xa5, 0x86, 0xfa, 0x71, 0x45, 0x5e, 0xa7, 0x7c, 0x5d, 0x19, 0x26, - 0x15, 0x37, 0xf7, 0x3a, 0x0a, 0x4a, 0x43, 0x5c, 0x27, 0x16, 0x83, 0x69, 0xfc, 0x46, 0xf3, 0x30, - 0xac, 0xc8, 0x6a, 0xaf, 0xdd, 0xc5, 0xf3, 0x31, 0x40, 0xe6, 0x23, 0x4e, 0x13, 0x8a, 0x32, 0x1e, - 0x34, 0xfd, 0x9f, 0x90, 0x75, 0xb8, 0xc2, 0x7e, 0xa1, 0xe7, 0x61, 0x40, 0x96, 0x7a, 0x52, 0x2a, - 0x46, 0x00, 0xcd, 0x3a, 0x06, 0x53, 0x25, 0x12, 0x5f, 0x21, 0x85, 0xc4, 0x32, 0x8c, 0xe6, 0x3a, - 0x9d, 0x86, 0x5a, 0x27, 0x82, 0x5b, 0xcc, 0xa3, 0x59, 0x93, 0x1f, 0x96, 0x87, 0xbe, 0xba, 0x3c, - 0xd0, 0x8d, 0x24, 0x05, 0xc2, 0x18, 0xcf, 0x01, 0xd8, 0xd9, 0xdf, 0x2c, 0x30, 0xdc, 0xd1, 0x85, - 0x40, 0x3c, 0x0b, 0xc3, 0xba, 0x44, 0x78, 0xb7, 0x26, 0x9e, 0x81, 0xd8, 0x6d, 0x4d, 0xe9, 0xf6, - 0x2b, 0xf2, 0x02, 0x0c, 0xaf, 0xb5, 0xb7, 0xd5, 0xd6, 0x86, 0xd4, 0x54, 0x70, 0xef, 0x0d, 0xfc, - 0xa3, 0xd6, 0x92, 0x9a, 0x8a, 0xbd, 0xf4, 0x70, 0x43, 0x2f, 0x27, 0x76, 0x60, 0xe2, 0x76, 0x4b, - 0xfd, 0xe8, 0xae, 0x82, 0x5b, 0xd7, 0x79, 0xfc, 0x3a, 0x0c, 0xef, 0x6a, 0x4a, 0x97, 0xaf, 0x7b, - 0xe2, 0xab, 0xcb, 0x73, 0xdd, 0xd9, 0xa5, 0xe9, 0x6f, 0xfa, 0xc8, 0x37, 0x7d, 0xe4, 0x55, 0xad, - 0x23, 0xd5, 0x95, 0x57, 0xbf, 0xf1, 0x1b, 0x1f, 0x5e, 0xbd, 0xb4, 0x74, 0xe5, 0xca, 0xbb, 0x67, - 0x2b, 0x71, 0x5c, 0x9c, 0xf4, 0xbb, 0x00, 0x83, 0x4a, 0x53, 0x52, 0x1b, 0x6c, 0xc0, 0xf0, 0xd5, - 0xe5, 0xa1, 0xee, 0x60, 0x52, 0x48, 0xfd, 0xbe, 0x50, 0xa1, 0x19, 0xe2, 0x55, 0x40, 0x7c, 0x8f, - 0x5a, 0xa7, 0xdd, 0xd2, 0xc8, 0xcc, 0xa9, 0x5a, 0x6d, 0x97, 0x64, 0x90, 0x2e, 0xe3, 0x95, 0xb8, - 0xaa, 0xd1, 0x82, 0xe2, 0x57, 0x04, 0x98, 0x58, 0xe9, 0x2a, 0x52, 0xef, 0x49, 0xa1, 0xfc, 0x10, - 0x0c, 0xee, 0xec, 0x36, 0xa5, 0x16, 0x63, 0xc2, 0x25, 0x5f, 0xf9, 0x21, 0x9d, 0xdf, 0xc4, 0x55, - 0x58, 0xef, 0x37, 0x9f, 0xa9, 0xd0, 0x26, 0x50, 0x19, 0x86, 0x9a, 0x52, 0x7d, 0x47, 0x65, 0x0a, - 0x2c, 0xb1, 0xf4, 0x62, 0xb0, 0xd6, 0xd6, 0x69, 0x25, 0xb3, 0x3d, 0xbd, 0x99, 0xe5, 0x04, 0x0c, - 0x60, 0xa4, 0x28, 0xfa, 0x7f, 0x97, 0x05, 0xf1, 0x87, 0x06, 0x01, 0x39, 0xbb, 0x47, 0x17, 0x01, - 0xb6, 0xd4, 0xae, 0xd6, 0xe3, 0x47, 0xcf, 0x13, 0x7b, 0x98, 0xe4, 0x92, 0xc1, 0x9e, 0x87, 0xe1, - 0x86, 0xa4, 0x97, 0x74, 0x4e, 0x4b, 0x1c, 0x67, 0x92, 0x82, 0xe7, 0x60, 0xb8, 0xa5, 0xd6, 0xef, - 0xd1, 0x82, 0x51, 0x52, 0x30, 0xfe, 0xd5, 0xe5, 0xc1, 0x6e, 0x94, 0x14, 0xc3, 0x59, 0xa4, 0xd8, - 0xcb, 0x80, 0x3a, 0x5d, 0x65, 0x4b, 0xe9, 0x76, 0x15, 0xb9, 0xd6, 0x90, 0x5a, 0xdb, 0xbb, 0xd2, - 0xb6, 0x42, 0xa5, 0x8d, 0x2b, 0x3f, 0x61, 0x94, 0x59, 0x63, 0x45, 0xd0, 0x07, 0x21, 0xb6, 0xad, - 0xb4, 0x64, 0x85, 0x0a, 0xe0, 0x98, 0xbf, 0xda, 0x5a, 0x25, 0xa5, 0x2b, 0xac, 0x16, 0x12, 0x75, - 0xde, 0x8a, 0x91, 0xbe, 0x46, 0xbe, 0xba, 0x3c, 0xdc, 0x1d, 0x22, 0x83, 0xf8, 0x66, 0x9d, 0xbb, - 0x50, 0x06, 0x26, 0x54, 0xad, 0x46, 0xfe, 0xaf, 0xdd, 0x57, 0xba, 0xea, 0x96, 0xaa, 0xc8, 0xa9, - 0x21, 0xc2, 0x4f, 0xe3, 0xaa, 0x56, 0xc0, 0xe9, 0x6f, 0xb3, 0x64, 0x74, 0x12, 0x06, 0x3b, 0x3b, - 0xd8, 0xf0, 0xc4, 0x39, 0xf1, 0x48, 0x4d, 0x55, 0x68, 0x2a, 0x6b, 0x8a, 0xfc, 0x6f, 0x36, 0x35, - 0xac, 0x37, 0x55, 0xc6, 0xe9, 0x46, 0x53, 0x22, 0x0c, 0xd5, 0xdb, 0xbb, 0xad, 0x5e, 0x77, 0x2f, - 0x05, 0x36, 0x42, 0xe8, 0x19, 0xe8, 0x2c, 0xc4, 0x1b, 0x44, 0xaf, 0xf5, 0xf6, 0x52, 0x09, 0x3b, - 0x75, 0xf5, 0x1c, 0x74, 0x11, 0x12, 0x9d, 0xb6, 0xd6, 0x93, 0x1a, 0xb5, 0x7a, 0x5b, 0x56, 0x52, - 0x23, 0xb6, 0x82, 0x40, 0x33, 0x57, 0xda, 0x32, 0x96, 0xb5, 0x58, 0x57, 0xd9, 0x56, 0xdb, 0xad, - 0xd4, 0xa8, 0xad, 0x14, 0x4b, 0x47, 0x59, 0x18, 0xd3, 0x7a, 0x5d, 0x45, 0xe9, 0xd5, 0x24, 0x59, - 0xee, 0x2a, 0x9a, 0x96, 0x1a, 0xb3, 0x95, 0x1c, 0xa5, 0xf9, 0x39, 0x9a, 0x8d, 0x9e, 0x85, 0x78, - 0x47, 0xd2, 0xb4, 0x07, 0xed, 0xae, 0x9c, 0x1a, 0xe7, 0xa9, 0x72, 0xb3, 0x62, 0x64, 0x88, 0x77, - 0x61, 0xca, 0x8d, 0x85, 0xd1, 0x29, 0x18, 0xf0, 0xe0, 0x46, 0x92, 0x8e, 0x32, 0x90, 0x90, 0x15, - 0xad, 0xde, 0x55, 0x89, 0x07, 0xc3, 0x58, 0x91, 0x41, 0xf9, 0x9b, 0x68, 0x85, 0xcf, 0x14, 0xff, - 0x69, 0x14, 0x46, 0x2c, 0x0a, 0xc2, 0x6e, 0x77, 0xdf, 0x80, 0x41, 0xad, 0x87, 0x6d, 0x50, 0x84, - 0xf0, 0xd2, 0x45, 0x3f, 0x5e, 0xc2, 0x8d, 0x55, 0x71, 0x85, 0x0a, 0xad, 0x87, 0xde, 0x80, 0xd1, - 0x3a, 0x1e, 0x85, 0xda, 0x6e, 0x51, 0x63, 0x16, 0xf5, 0x35, 0x66, 0x23, 0x7a, 0x05, 0x62, 0xce, - 0x6c, 0xb6, 0x70, 0x20, 0x94, 0x2d, 0xe4, 0xad, 0xd8, 0xa0, 0xd3, 0x8a, 0x99, 0x8a, 0x2d, 0x46, - 0xad, 0x98, 0xa1, 0xba, 0x0a, 0xba, 0xea, 0x1a, 0x22, 0xfd, 0x5d, 0xf6, 0x1b, 0x37, 0xd3, 0x1a, - 0x94, 0x8a, 0xa6, 0xd6, 0xba, 0x65, 0x6a, 0xad, 0x38, 0x69, 0x28, 0xeb, 0xd7, 0x90, 0x31, 0xd9, - 0x46, 0x53, 0xee, 0x0a, 0xeb, 0x3f, 0x0c, 0x40, 0x1c, 0x13, 0xfb, 0x6d, 0x55, 0x79, 0xf0, 0xf5, - 0x34, 0x6b, 0xa7, 0x21, 0x61, 0x5a, 0x5c, 0x2d, 0x15, 0x5b, 0x88, 0x5e, 0x18, 0xae, 0x80, 0x61, - 0x69, 0x35, 0x74, 0x05, 0xa6, 0x38, 0xbd, 0x69, 0x1a, 0xe7, 0x21, 0x42, 0x1d, 0x53, 0xa7, 0x9a, - 0x46, 0xfc, 0x3a, 0x00, 0xd1, 0xdc, 0xa4, 0x30, 0x9b, 0xa7, 0x7e, 0x50, 0x89, 0x9e, 0x27, 0xd5, - 0xd1, 0x39, 0x18, 0xeb, 0x2a, 0x5a, 0x7b, 0xb7, 0x8b, 0x3d, 0xcd, 0x07, 0x2d, 0xa5, 0x4b, 0x34, - 0xd7, 0x70, 0x65, 0x54, 0x4f, 0x2d, 0xe1, 0x44, 0x2b, 0xab, 0x81, 0x8d, 0xd5, 0x72, 0x3a, 0xab, - 0x25, 0x48, 0xcf, 0x17, 0x03, 0xb1, 0x1a, 0x9e, 0x76, 0x93, 0xcd, 0x56, 0x4d, 0x36, 0x1b, 0x21, - 0x8d, 0x3c, 0x1f, 0x90, 0xcd, 0x58, 0x33, 0xee, 0x2c, 0xf6, 0x23, 0x03, 0x30, 0x6a, 0xe1, 0x6b, - 0x74, 0xd2, 0x69, 0x0e, 0x79, 0x13, 0x38, 0xef, 0x30, 0x81, 0x9c, 0xd9, 0x3b, 0x03, 0x23, 0xb2, - 0xaa, 0x75, 0x1a, 0xd2, 0x1e, 0x67, 0xf9, 0x2a, 0x09, 0x96, 0xa6, 0xd7, 0x37, 0x2d, 0x23, 0xf3, - 0x2b, 0x0d, 0x7b, 0x78, 0xd9, 0xd5, 0x1e, 0x52, 0x1f, 0xb3, 0xaf, 0x15, 0x8c, 0xed, 0xcb, 0x0a, - 0x4e, 0xe9, 0x56, 0x90, 0xf2, 0x4d, 0x3f, 0xbb, 0x17, 0x77, 0xb7, 0x7b, 0x53, 0xba, 0xdd, 0xa3, - 0x2c, 0xd1, 0xcf, 0xdc, 0x81, 0xbb, 0xb9, 0x4b, 0x99, 0xe6, 0x8e, 0x58, 0x32, 0xd3, 0xc8, 0xa5, - 0x39, 0x23, 0x37, 0xc2, 0x08, 0xad, 0x9b, 0xb6, 0xd3, 0x56, 0xd3, 0x46, 0x8c, 0x96, 0xc5, 0xa0, - 0xcd, 0x18, 0x06, 0x6d, 0x8c, 0x7a, 0xe8, 0xcc, 0x8c, 0x9d, 0x73, 0x98, 0xb1, 0x71, 0xca, 0xcc, - 0x16, 0xe3, 0x25, 0xfe, 0xdb, 0x01, 0x18, 0x36, 0x78, 0x10, 0x15, 0x20, 0xa9, 0x5b, 0xac, 0x1a, - 0x15, 0x61, 0x39, 0xc0, 0x7a, 0x65, 0x5c, 0xaf, 0x43, 0x17, 0x3c, 0xb2, 0x8d, 0xb3, 0x22, 0x7d, - 0x39, 0x2b, 0xea, 0xc3, 0x59, 0x03, 0x3e, 0x9c, 0x35, 0x18, 0x88, 0xb3, 0x62, 0xfe, 0x9c, 0x35, - 0x74, 0x30, 0xce, 0x8a, 0xfb, 0x72, 0xd6, 0xb0, 0x0f, 0x67, 0x81, 0x2f, 0x67, 0x25, 0x7c, 0x39, - 0x6b, 0xc4, 0x9b, 0xb3, 0x46, 0xfb, 0x73, 0xd6, 0x58, 0x1f, 0xce, 0x1a, 0xf7, 0xe1, 0xac, 0xa4, - 0x1b, 0x67, 0xad, 0xc2, 0xb8, 0xcd, 0xfc, 0x21, 0xc4, 0x3b, 0x3b, 0xcc, 0xc1, 0x59, 0x70, 0x71, - 0x70, 0xac, 0x6e, 0xcd, 0x77, 0x09, 0x90, 0xe0, 0x34, 0x1c, 0x7a, 0x13, 0xc6, 0x08, 0xfb, 0xdc, - 0x53, 0xf6, 0x30, 0x82, 0x40, 0x2c, 0x3a, 0x82, 0x6b, 0xdc, 0x52, 0xf6, 0x72, 0xb8, 0xbc, 0x81, - 0x23, 0xe2, 0x8d, 0x23, 0xea, 0xc4, 0xf1, 0x11, 0x98, 0xba, 0xdd, 0x91, 0x9d, 0x2e, 0x9c, 0xe7, - 0x6a, 0x36, 0x8c, 0xef, 0xf6, 0x2f, 0x05, 0x98, 0xca, 0xc9, 0x32, 0x6b, 0xfa, 0x96, 0xb2, 0xa7, - 0xb7, 0xbe, 0x00, 0x43, 0xc4, 0xda, 0x38, 0xbb, 0x88, 0xe1, 0x74, 0x12, 0x11, 0x1a, 0x30, 0x82, - 0x03, 0x63, 0x4b, 0x8b, 0x01, 0x8d, 0xc5, 0x2d, 0x65, 0x6f, 0x73, 0xaf, 0xa3, 0x10, 0x3c, 0x8f, - 0x84, 0xc8, 0xc2, 0x33, 0x15, 0xd2, 0x0a, 0x5a, 0x81, 0x71, 0xe5, 0x63, 0x1d, 0xb5, 0x1b, 0xca, - 0x5d, 0x18, 0x33, 0xab, 0x60, 0x9b, 0x2f, 0xfe, 0x62, 0x04, 0xa6, 0x6d, 0xa3, 0xf1, 0x74, 0x49, - 0x6d, 0xbe, 0x49, 0x24, 0xa4, 0x6f, 0xd2, 0x2f, 0xb4, 0xb1, 0xcc, 0x28, 0x33, 0xb0, 0x1f, 0xca, - 0x78, 0xd3, 0x63, 0x30, 0x2c, 0x3d, 0xb0, 0xac, 0x61, 0x6e, 0x95, 0x95, 0x9e, 0xa4, 0x36, 0x34, - 0xa2, 0x8d, 0x46, 0x2a, 0x70, 0x4f, 0xd9, 0xcb, 0xd3, 0x14, 0xf1, 0x0e, 0x4c, 0x9a, 0xbd, 0x17, - 0xf3, 0xc1, 0x27, 0xff, 0x14, 0xc4, 0x70, 0xcb, 0xce, 0x68, 0xc9, 0xe0, 0x3d, 0x65, 0xaf, 0x28, - 0x8b, 0xdf, 0x1d, 0x81, 0x31, 0xb3, 0x65, 0x57, 0xff, 0x72, 0xf9, 0x20, 0xfc, 0xc3, 0xa8, 0xd4, - 0x6f, 0x16, 0x1c, 0x53, 0x3c, 0x10, 0x72, 0x8a, 0x9f, 0xc4, 0x14, 0x88, 0x0f, 0x61, 0xd6, 0x44, - 0x5e, 0x55, 0xa4, 0x6e, 0x7d, 0x47, 0xa7, 0xb2, 0x19, 0xd9, 0x13, 0xdc, 0x23, 0x7b, 0x11, 0x3e, - 0x1e, 0xc9, 0xc2, 0x8c, 0x51, 0x23, 0xcc, 0xc8, 0xcf, 0xd2, 0x80, 0xeb, 0x2c, 0x89, 0x9f, 0x8f, - 0x40, 0xca, 0xd9, 0x3b, 0x13, 0x89, 0x70, 0xdd, 0x9f, 0x81, 0x91, 0x5e, 0x1b, 0x6b, 0xed, 0xae, - 0xa2, 0xed, 0x36, 0xf4, 0xa8, 0x63, 0x82, 0xa4, 0x55, 0x48, 0x12, 0xba, 0x81, 0x15, 0x37, 0xc9, - 0x1c, 0x20, 0xa1, 0xce, 0x10, 0x53, 0x8a, 0x19, 0xa4, 0xc2, 0x6a, 0x53, 0x53, 0xda, 0xae, 0x2b, - 0x9a, 0xa6, 0xc8, 0x35, 0x9b, 0x0f, 0x3f, 0x61, 0xe4, 0x54, 0xf5, 0x79, 0xce, 0xc1, 0xd8, 0x7d, - 0x55, 0x79, 0x50, 0x33, 0xe2, 0xf9, 0x2c, 0x3a, 0xd8, 0x6f, 0x96, 0x46, 0x71, 0x0d, 0xe3, 0xa7, - 0xf8, 0x37, 0x02, 0x4c, 0x90, 0xe5, 0xcb, 0x01, 0xe6, 0x67, 0x13, 0xc6, 0xb4, 0x76, 0xb7, 0xa7, - 0xb6, 0xb6, 0x6b, 0xf5, 0x76, 0x63, 0xb7, 0xd9, 0x62, 0x31, 0xf2, 0xcb, 0x81, 0xd6, 0x4d, 0xa4, - 0x63, 0xac, 0xb0, 0x46, 0x59, 0x23, 0x2b, 0xa4, 0x0d, 0x7d, 0xd6, 0x07, 0xcc, 0x59, 0x2f, 0xc2, - 0xd0, 0x47, 0x77, 0x95, 0xae, 0xaa, 0x68, 0xa9, 0x41, 0x42, 0xe6, 0x6c, 0xf0, 0x0e, 0xde, 0xda, - 0x55, 0xba, 0x7b, 0x15, 0xbd, 0xbe, 0xf8, 0x25, 0x01, 0xc6, 0x6d, 0x99, 0xa8, 0x08, 0xd1, 0x7b, - 0xca, 0x1e, 0x19, 0x71, 0x58, 0xec, 0x9c, 0x4e, 0xc7, 0x6d, 0xa0, 0x3c, 0xc4, 0x9a, 0x4a, 0x6f, - 0xa7, 0x2d, 0x33, 0x11, 0xf7, 0x0d, 0xee, 0xd3, 0x96, 0xd6, 0x49, 0x9d, 0x0a, 0xab, 0x8b, 0xa9, - 0x7d, 0x5f, 0x6a, 0xec, 0xea, 0x1e, 0x1b, 0xfd, 0x21, 0xfe, 0x78, 0x04, 0x10, 0x3f, 0x63, 0x87, - 0xc5, 0xd3, 0x6f, 0xda, 0x78, 0xfa, 0x42, 0x10, 0x8a, 0x3c, 0x65, 0x6e, 0xfe, 0x99, 0x28, 0x24, - 0x30, 0x8c, 0x72, 0xb7, 0xbd, 0xa5, 0x36, 0x9c, 0xb6, 0xef, 0x20, 0x6e, 0x72, 0xdf, 0xd5, 0x95, - 0xdd, 0x87, 0x1e, 0x74, 0xfa, 0xd0, 0x47, 0xec, 0x26, 0xf3, 0xf6, 0x21, 0xee, 0x67, 0x1f, 0x86, - 0x0f, 0x16, 0x9e, 0x80, 0x30, 0xe1, 0x09, 0xf1, 0x2b, 0x51, 0x2a, 0x7b, 0x6c, 0x92, 0x5c, 0x2d, - 0xe4, 0xfb, 0x13, 0xf5, 0xf4, 0x27, 0xca, 0x1e, 0x2b, 0x4a, 0x04, 0x8e, 0x15, 0x8d, 0x78, 0xc5, - 0x8a, 0xc4, 0xcf, 0x46, 0x20, 0x45, 0x5d, 0x7a, 0x8e, 0x03, 0xbc, 0x36, 0x2d, 0x2f, 0x3a, 0x99, - 0x20, 0xd0, 0xee, 0x41, 0x34, 0xe8, 0xee, 0xc1, 0x40, 0xc8, 0xdd, 0x83, 0xc1, 0x30, 0xbb, 0x07, - 0xfb, 0x8a, 0x9b, 0x88, 0x5b, 0x30, 0x67, 0xd2, 0xe7, 0x36, 0x8b, 0x71, 0x79, 0x11, 0xc8, 0xb2, - 0xb7, 0x14, 0x09, 0xb3, 0xb7, 0x24, 0xfe, 0x1f, 0x01, 0x86, 0x71, 0xf3, 0x64, 0x65, 0xec, 0x68, - 0x78, 0xca, 0xb2, 0x3f, 0xd6, 0x77, 0x8d, 0x1d, 0x75, 0x5f, 0x63, 0xf3, 0x5c, 0x3d, 0xe0, 0xc7, - 0xd5, 0x83, 0x07, 0xe3, 0xea, 0x58, 0x28, 0xf5, 0xf3, 0xff, 0x04, 0x18, 0x35, 0x46, 0xee, 0xaa, - 0x7c, 0xde, 0xcb, 0xa3, 0xbf, 0x0f, 0x33, 0x26, 0x7f, 0x11, 0xd0, 0x5e, 0xcc, 0xe5, 0xbb, 0x47, - 0x1a, 0x86, 0x22, 0x06, 0xbf, 0x91, 0x38, 0x8a, 0x1b, 0xc5, 0x69, 0x44, 0x26, 0xe2, 0x1b, 0x91, - 0x89, 0xba, 0x47, 0x64, 0xfa, 0xc5, 0xbc, 0x1d, 0x14, 0x8f, 0x1d, 0x8c, 0xe2, 0x43, 0xfb, 0xe2, - 0x37, 0x8a, 0xd7, 0x83, 0xdf, 0xde, 0xb3, 0xa3, 0xff, 0x56, 0x9e, 0xdf, 0x08, 0x68, 0xdf, 0x20, - 0xce, 0x69, 0x0b, 0x39, 0x96, 0x87, 0xbf, 0xba, 0x1c, 0xeb, 0x0e, 0x24, 0x05, 0x9f, 0x2d, 0x4f, - 0x77, 0xca, 0x88, 0xff, 0x3a, 0x42, 0x3d, 0x42, 0x7d, 0xeb, 0xd0, 0x4e, 0x7b, 0x2e, 0x92, 0x17, - 0xf1, 0x8e, 0xe4, 0x45, 0xfb, 0x47, 0xf2, 0x06, 0xfa, 0x44, 0xf2, 0x06, 0x7d, 0x22, 0x79, 0x31, - 0x97, 0x48, 0x9e, 0x65, 0x3e, 0x87, 0xfc, 0xe6, 0x33, 0x7e, 0xb0, 0xf9, 0x1c, 0x0e, 0x35, 0x9f, - 0x7f, 0x14, 0xa1, 0xce, 0x1b, 0x43, 0xea, 0xca, 0xcf, 0xef, 0xd3, 0x74, 0x38, 0xac, 0x86, 0xe0, - 0x9c, 0x22, 0x86, 0xd7, 0x57, 0x4c, 0x44, 0x1b, 0x95, 0xfd, 0x36, 0xf3, 0xa3, 0x41, 0x37, 0xf3, - 0x07, 0x02, 0x6d, 0xe6, 0x0f, 0x06, 0xde, 0xcc, 0x8f, 0xf5, 0xdd, 0xcc, 0x17, 0xef, 0x40, 0x12, - 0x0f, 0x7b, 0x7d, 0xb7, 0xd1, 0x53, 0x6f, 0x48, 0xf5, 0x5e, 0xbb, 0xab, 0xa1, 0x15, 0x18, 0x68, - 0x6e, 0x49, 0xfa, 0xc1, 0xb1, 0x40, 0xcb, 0x7c, 0xae, 0x7e, 0x85, 0x54, 0x16, 0x7f, 0x90, 0xad, - 0xf1, 0xb9, 0x1c, 0xf4, 0x1a, 0x8b, 0xbc, 0xd1, 0x45, 0xfe, 0x79, 0xdf, 0x30, 0xcd, 0x96, 0xc4, - 0x85, 0xdc, 0x3e, 0x68, 0xdd, 0x16, 0xf6, 0x5d, 0x10, 0xaf, 0xdf, 0xc8, 0xf1, 0xbb, 0xc2, 0xe2, - 0x5b, 0x30, 0x5e, 0x66, 0xfb, 0x36, 0xbe, 0xb3, 0x7b, 0x8e, 0x3b, 0xe2, 0x60, 0xd3, 0x83, 0xfc, - 0x21, 0x87, 0x6f, 0x83, 0x53, 0x55, 0xa5, 0xa7, 0xb7, 0xba, 0xd1, 0xee, 0xa9, 0x5b, 0xec, 0xd0, - 0x97, 0x6f, 0x0f, 0x79, 0x4b, 0x10, 0xf2, 0x8a, 0xdf, 0x60, 0xf8, 0xb6, 0x4d, 0x9a, 0x88, 0x2b, - 0x80, 0x8a, 0x2d, 0xb5, 0xa7, 0x4a, 0x8d, 0x75, 0xce, 0x97, 0xf0, 0xec, 0xd4, 0xd5, 0xb5, 0x12, - 0xb7, 0x20, 0x59, 0xea, 0x6e, 0x17, 0xa5, 0x66, 0xb9, 0xdd, 0x50, 0xeb, 0x34, 0x66, 0xfa, 0x0a, - 0xcc, 0x11, 0xdf, 0x96, 0x2e, 0x2b, 0x9a, 0xbb, 0x5a, 0xaf, 0x76, 0x57, 0xa9, 0xc9, 0xed, 0xa6, - 0xa4, 0xb6, 0xd8, 0xd1, 0xab, 0x69, 0x5c, 0x80, 0xac, 0x2d, 0xd6, 0x77, 0xb5, 0xde, 0xb2, 0x92, - 0x27, 0x99, 0x58, 0xfd, 0xc8, 0xca, 0x96, 0xb4, 0xdb, 0xa0, 0x31, 0x8f, 0x78, 0x45, 0xff, 0x29, - 0x2e, 0x91, 0x7e, 0xe8, 0xa9, 0x90, 0x80, 0xc7, 0x41, 0xc4, 0xef, 0x88, 0x40, 0xb4, 0xd4, 0xdd, - 0x76, 0x28, 0xb9, 0xb0, 0xcc, 0x50, 0xea, 0x6e, 0x1f, 0xa3, 0x23, 0x02, 0xfa, 0x7e, 0xcc, 0x20, - 0xb7, 0x1f, 0xc3, 0x2b, 0xc8, 0x98, 0x55, 0x41, 0x8a, 0x9f, 0x88, 0xc0, 0x50, 0xa9, 0xbb, 0xed, - 0xaa, 0xee, 0xbf, 0xbe, 0x28, 0x71, 0x11, 0x62, 0x8c, 0xcf, 0x4e, 0x43, 0x8c, 0x63, 0x47, 0x3e, - 0x06, 0x4d, 0x93, 0xc5, 0xef, 0x8d, 0xc0, 0x70, 0xa9, 0xbb, 0xcd, 0x8a, 0x4f, 0x43, 0xcc, 0x72, - 0x12, 0x79, 0xb0, 0x4d, 0xce, 0x20, 0x1f, 0x78, 0x3b, 0xc6, 0x36, 0xfa, 0x68, 0xa8, 0xd1, 0xcf, - 0x18, 0x63, 0xa0, 0xf6, 0x96, 0xfd, 0xc2, 0x14, 0x30, 0x3c, 0x2b, 0x7a, 0xbc, 0xd7, 0xf8, 0x8d, - 0xe5, 0xab, 0xd3, 0x55, 0x9b, 0x52, 0x77, 0x8f, 0x10, 0x27, 0x5e, 0xd1, 0x7f, 0xf6, 0x33, 0xb1, - 0xe2, 0xff, 0x8c, 0xc0, 0xa8, 0x41, 0x0c, 0xc2, 0x47, 0x5f, 0xdf, 0x04, 0x41, 0xdf, 0x0c, 0xe3, - 0xec, 0xfc, 0x3c, 0x1e, 0x29, 0x51, 0xc5, 0x71, 0x22, 0x40, 0x2f, 0x07, 0x10, 0x20, 0x46, 0x46, - 0xa3, 0x3e, 0xd1, 0xc8, 0x63, 0xf7, 0x2d, 0xbf, 0xc5, 0xeb, 0x30, 0x99, 0x93, 0x65, 0xa3, 0xb4, - 0xae, 0xf1, 0x44, 0x1b, 0xdf, 0xf2, 0x3a, 0x4f, 0x67, 0xdd, 0x4f, 0x0b, 0x90, 0x76, 0xe9, 0x26, - 0x44, 0x13, 0xe8, 0xb6, 0xc5, 0xbe, 0xec, 0x77, 0x50, 0xf6, 0xdd, 0x52, 0xb1, 0x00, 0xf3, 0xae, - 0xc0, 0x58, 0x18, 0x7c, 0x0a, 0x06, 0x7b, 0xed, 0x7b, 0x4a, 0x4b, 0xe7, 0x29, 0xf2, 0x03, 0x25, - 0x21, 0xba, 0xdb, 0xd5, 0x8d, 0x0e, 0xfe, 0x57, 0xfc, 0x20, 0xa4, 0x58, 0x6d, 0x65, 0x5f, 0x04, - 0x7a, 0x15, 0x66, 0xcb, 0x74, 0x92, 0x1d, 0xd5, 0x7d, 0xf5, 0xc2, 0x75, 0x98, 0xa9, 0x28, 0xcd, - 0xf6, 0x7d, 0x25, 0x7c, 0xd5, 0xcf, 0x45, 0x60, 0xd6, 0xa8, 0x75, 0xd8, 0x3b, 0x00, 0x05, 0xdb, - 0x0e, 0xc0, 0xe5, 0xe0, 0x73, 0xf8, 0x74, 0xb7, 0x01, 0xfe, 0xbe, 0x00, 0x33, 0x0e, 0x2a, 0xed, - 0x67, 0x67, 0x6b, 0xc3, 0xdc, 0x71, 0x8a, 0x12, 0x12, 0xbc, 0x18, 0x98, 0x04, 0xae, 0xdb, 0x4e, - 0xbf, 0x25, 0xc0, 0x94, 0x5b, 0x09, 0xb4, 0xc1, 0xef, 0x3d, 0x2d, 0x85, 0xec, 0xe4, 0x88, 0x37, - 0xa0, 0x9e, 0x83, 0xb1, 0x52, 0x77, 0x7b, 0x5d, 0x69, 0xde, 0x55, 0xba, 0x95, 0x76, 0x43, 0xd1, - 0x70, 0xb9, 0x2e, 0xfe, 0x87, 0xf8, 0xeb, 0xc3, 0x15, 0xfa, 0x43, 0xfc, 0x63, 0x81, 0x98, 0x3f, - 0x5a, 0x10, 0xcd, 0xda, 0x36, 0xd6, 0x8d, 0xfd, 0x74, 0xa3, 0x72, 0x84, 0xab, 0x7c, 0x30, 0x25, - 0x7e, 0xe0, 0xfd, 0xef, 0x3e, 0xf1, 0x14, 0x71, 0x5d, 0xd7, 0xaa, 0x8c, 0x02, 0x81, 0x0f, 0x0e, - 0xb8, 0x0e, 0x54, 0x2c, 0xc3, 0x0c, 0x3d, 0xc4, 0xf5, 0xc4, 0x5a, 0x7c, 0x95, 0x53, 0x2f, 0x21, - 0x5b, 0xd4, 0xf5, 0x0b, 0xad, 0x76, 0x1c, 0xf5, 0x0b, 0x45, 0xf6, 0x94, 0xf5, 0xcb, 0x5f, 0x51, - 0x5f, 0xc6, 0xc4, 0xf2, 0x9e, 0xe1, 0xee, 0xfe, 0xa7, 0xba, 0xdd, 0x0f, 0x75, 0x5a, 0xf7, 0xea, - 0xe2, 0x7d, 0xf7, 0xea, 0x86, 0x7d, 0xce, 0x1e, 0x82, 0x63, 0x3b, 0x4e, 0x57, 0xe6, 0x56, 0x96, - 0x3c, 0x32, 0x65, 0xce, 0x77, 0xeb, 0xae, 0xcc, 0x1d, 0x25, 0xc2, 0x2b, 0x73, 0xbe, 0x89, 0x23, - 0x56, 0xe6, 0x3f, 0x21, 0xc0, 0x14, 0xfb, 0xb0, 0x2b, 0xd4, 0xba, 0x18, 0xbd, 0x08, 0x33, 0xfa, - 0x87, 0x63, 0x98, 0xa7, 0x6b, 0x92, 0xa6, 0x29, 0x5d, 0xe3, 0xd4, 0x5d, 0xbc, 0x32, 0xc5, 0x72, - 0xb1, 0x85, 0xc8, 0xe9, 0x79, 0xe8, 0x12, 0x91, 0x55, 0xb3, 0x56, 0x7d, 0x47, 0xa9, 0xdf, 0x63, - 0xb1, 0xdb, 0x24, 0x57, 0x63, 0x05, 0xa7, 0x8b, 0xbf, 0x6c, 0x82, 0xa3, 0xf1, 0x31, 0xdf, 0xf8, - 0xc2, 0x29, 0xfe, 0x9c, 0x61, 0x28, 0xd4, 0xd1, 0xd0, 0xa8, 0x07, 0x3c, 0x50, 0xff, 0x74, 0x04, - 0xa6, 0x19, 0xea, 0xc3, 0xd6, 0xa0, 0x2b, 0x36, 0x0d, 0xea, 0x7b, 0x6e, 0x9d, 0xe1, 0x7a, 0xca, - 0xfa, 0xf3, 0x67, 0xa3, 0x90, 0xe0, 0x90, 0x60, 0x0d, 0xc2, 0x7d, 0x84, 0xc8, 0xce, 0xc5, 0x1b, - 0xdf, 0x1e, 0xba, 0x1e, 0x1e, 0x5d, 0xd6, 0x83, 0x0e, 0x01, 0x3f, 0xc7, 0xd5, 0x27, 0x84, 0x0f, - 0x3c, 0x1c, 0x28, 0x6e, 0x70, 0xe0, 0x6d, 0x3c, 0xe7, 0xb7, 0x0f, 0x31, 0xb7, 0x6f, 0x1f, 0xfa, - 0x2d, 0x21, 0xbd, 0xb9, 0x39, 0x1e, 0x9a, 0x9b, 0x87, 0x3d, 0xb8, 0xf9, 0x93, 0xa6, 0x0c, 0x1e, - 0x44, 0xf9, 0xae, 0xd9, 0x95, 0xef, 0x52, 0xd0, 0x19, 0x73, 0x53, 0xbd, 0xbf, 0x21, 0x00, 0x72, - 0xe6, 0xa3, 0x35, 0x5e, 0xf1, 0x5e, 0x09, 0xd5, 0xc1, 0x11, 0xab, 0xdd, 0x12, 0xc4, 0x59, 0xf7, - 0x1a, 0x5a, 0x81, 0x38, 0xa3, 0xba, 0x1e, 0xf0, 0x3e, 0x1f, 0x10, 0x7a, 0xc5, 0xa8, 0x28, 0xfe, - 0x75, 0x04, 0x86, 0x58, 0xaa, 0x23, 0x40, 0xf7, 0xde, 0x94, 0x9f, 0x3e, 0x41, 0xba, 0x3e, 0x82, - 0x31, 0x14, 0x5a, 0x30, 0xe2, 0x1e, 0x82, 0x91, 0x31, 0x58, 0xd0, 0x7f, 0x29, 0xf4, 0xa7, 0x02, - 0x8c, 0x5a, 0x0a, 0xbf, 0x77, 0x96, 0x43, 0x75, 0x48, 0x5a, 0x46, 0x96, 0x93, 0x65, 0x6f, 0xf3, - 0xcc, 0x2d, 0x40, 0x22, 0x3e, 0x4b, 0x9a, 0x28, 0x4f, 0xbf, 0x2d, 0x98, 0xb4, 0x74, 0xc2, 0xbe, - 0xf3, 0x7f, 0xe2, 0xfd, 0x94, 0x6d, 0xfd, 0xd0, 0x75, 0xd4, 0x01, 0xfa, 0x11, 0x7b, 0x30, 0x56, - 0xe6, 0x78, 0xad, 0x1f, 0x71, 0x92, 0x54, 0x7b, 0xb1, 0x20, 0x15, 0xd6, 0x40, 0x01, 0xbe, 0xf9, - 0x9a, 0x82, 0xc1, 0xed, 0x6e, 0x7b, 0xb7, 0xc3, 0xc2, 0x95, 0xf4, 0x87, 0xf8, 0xc8, 0xd4, 0x8f, - 0xac, 0xdb, 0xe5, 0xdd, 0xc6, 0x3d, 0xef, 0xae, 0xab, 0x30, 0xca, 0x73, 0x3e, 0x65, 0xbe, 0x00, - 0xc7, 0x98, 0xad, 0x7d, 0x54, 0x46, 0x38, 0x21, 0xd1, 0xc4, 0xbf, 0x23, 0xc0, 0x44, 0x99, 0x97, - 0x9a, 0xfe, 0x73, 0x36, 0xc7, 0x0d, 0xdf, 0xcc, 0x39, 0x18, 0x1d, 0x7e, 0x38, 0x62, 0x38, 0x1a, - 0x18, 0x82, 0x9f, 0xa3, 0xb1, 0xaf, 0x19, 0x38, 0xb0, 0x74, 0xd9, 0x64, 0x7b, 0x30, 0x94, 0x6c, - 0x1b, 0xe3, 0x8e, 0x71, 0xe3, 0xee, 0x1b, 0x88, 0xff, 0x53, 0x01, 0xc6, 0x39, 0x9a, 0x04, 0x71, - 0xc0, 0x9e, 0x0e, 0x5d, 0xc2, 0x0f, 0x6d, 0xd5, 0xc2, 0x70, 0x7e, 0xc2, 0xeb, 0xcd, 0x70, 0xe2, - 0x17, 0x22, 0x30, 0xc7, 0xb5, 0x74, 0xd8, 0x6e, 0xfc, 0xaa, 0xcd, 0x8d, 0xcf, 0x86, 0x90, 0xbb, - 0xa7, 0xec, 0xca, 0xff, 0x96, 0x00, 0x29, 0x17, 0x4a, 0x51, 0x17, 0xf1, 0x39, 0x27, 0x5b, 0xb9, - 0x5d, 0x2e, 0x12, 0xee, 0xa2, 0x17, 0x54, 0x36, 0x5d, 0x49, 0x4a, 0xae, 0x97, 0x42, 0x90, 0xcb, - 0xd5, 0x9d, 0xfc, 0x5d, 0x01, 0x66, 0xdc, 0xcb, 0xa0, 0x32, 0xef, 0x52, 0xbe, 0x18, 0xba, 0xa3, - 0x23, 0x76, 0x2b, 0xff, 0x47, 0xc4, 0x90, 0x80, 0x20, 0xc1, 0xa9, 0x79, 0xc7, 0xf9, 0x51, 0xb7, - 0x60, 0x4f, 0xd4, 0x3b, 0xd8, 0x33, 0xd0, 0x37, 0xd8, 0x33, 0x68, 0x0b, 0xf6, 0x18, 0x36, 0x37, - 0xd6, 0xc7, 0xb5, 0x19, 0x3a, 0x98, 0x6b, 0x13, 0x3f, 0x80, 0x6b, 0x03, 0x36, 0x2f, 0xd2, 0xae, - 0xe4, 0x12, 0xce, 0xe0, 0xd4, 0xcf, 0x47, 0x60, 0xde, 0x42, 0xf0, 0xc3, 0x56, 0x15, 0x45, 0x9b, - 0xaa, 0xb8, 0x1a, 0x90, 0x25, 0x8f, 0x45, 0xdc, 0xf4, 0x77, 0x05, 0x48, 0xbb, 0x52, 0xeb, 0x30, - 0xd5, 0x45, 0xc5, 0xae, 0x2e, 0x5e, 0x09, 0x45, 0x32, 0x57, 0x85, 0xf1, 0x07, 0xa6, 0xd6, 0x73, - 0x86, 0xff, 0x2a, 0xbc, 0xca, 0x78, 0x69, 0x1f, 0x9d, 0x1d, 0xb1, 0xd2, 0xf8, 0xaf, 0x11, 0x48, - 0x70, 0xb7, 0x45, 0x1d, 0xf8, 0x7c, 0x47, 0xae, 0xd3, 0x39, 0xe6, 0xe7, 0x3b, 0xd6, 0x21, 0xd1, - 0x56, 0xe5, 0x7a, 0xad, 0xde, 0x6e, 0x6d, 0xa9, 0xdb, 0x4c, 0x67, 0x64, 0x7c, 0x03, 0xb5, 0xc5, - 0xfc, 0xca, 0x0a, 0xa9, 0x71, 0xf3, 0x99, 0x0a, 0xe0, 0x06, 0xe8, 0x2f, 0x8b, 0x0e, 0x19, 0xb6, - 0xea, 0x90, 0xe5, 0x11, 0x00, 0xa9, 0xd3, 0x61, 0x3d, 0x89, 0x3d, 0x98, 0xe0, 0x28, 0x4d, 0x63, - 0x9a, 0x81, 0xd9, 0x9e, 0x3a, 0x32, 0x11, 0xef, 0xa0, 0xe7, 0xa0, 0xc7, 0x11, 0xa6, 0xdf, 0x1b, - 0x02, 0x30, 0xc1, 0xa3, 0x67, 0x61, 0xb4, 0xab, 0xc8, 0x6a, 0x17, 0x77, 0xb8, 0xdb, 0x55, 0xf5, - 0xa5, 0xea, 0x88, 0x9e, 0x78, 0xbb, 0xab, 0x6a, 0xe8, 0x0e, 0x89, 0x4e, 0x11, 0x25, 0x46, 0xce, - 0x26, 0xd0, 0x25, 0x41, 0x80, 0xa8, 0x0a, 0xee, 0x48, 0x57, 0x7f, 0xe4, 0x54, 0xc2, 0x68, 0x97, - 0xfb, 0xa5, 0xa1, 0x0d, 0x48, 0x6c, 0x77, 0x25, 0x76, 0xbd, 0x1a, 0x5d, 0x7e, 0x05, 0xf8, 0xda, - 0x0e, 0xb7, 0xba, 0x8a, 0xab, 0x91, 0x26, 0x61, 0x5b, 0xff, 0x57, 0x43, 0xdf, 0x04, 0x49, 0xc9, - 0x24, 0x69, 0x8d, 0xfb, 0xfa, 0xf8, 0x85, 0x20, 0x8d, 0x72, 0xd3, 0x41, 0x9a, 0x1e, 0x97, 0xac, - 0x09, 0xd8, 0xa2, 0xd5, 0x1b, 0xaa, 0xd2, 0x22, 0x93, 0xc3, 0x2c, 0x1a, 0x4d, 0x28, 0xca, 0x98, - 0x94, 0x2c, 0x53, 0x53, 0xea, 0x5d, 0xa5, 0xc7, 0x5c, 0xd5, 0x11, 0x9a, 0x58, 0x25, 0x69, 0xe8, - 0x6f, 0x41, 0x52, 0xda, 0xed, 0xed, 0xd4, 0xa8, 0x10, 0x52, 0x84, 0x43, 0x01, 0xf7, 0x06, 0x30, - 0xc2, 0xdd, 0x1e, 0x93, 0x63, 0x7a, 0xc8, 0x43, 0xb2, 0xfc, 0x46, 0xd7, 0x61, 0xae, 0xd3, 0xa6, - 0xb7, 0xaf, 0xb4, 0x77, 0x7b, 0x35, 0xeb, 0xcc, 0xc6, 0xc9, 0xcc, 0xce, 0xe0, 0x02, 0x6b, 0x24, - 0xbf, 0xc2, 0xcf, 0x71, 0x01, 0x86, 0xee, 0x2b, 0x5d, 0x4d, 0x6d, 0xb7, 0x08, 0xdb, 0x8e, 0xf9, - 0x87, 0x8f, 0x31, 0x9e, 0xb7, 0x69, 0x95, 0x8a, 0x5e, 0x17, 0x9d, 0x83, 0xb1, 0x56, 0xbb, 0xa5, - 0xd4, 0xea, 0xed, 0x66, 0xa7, 0xa1, 0x4a, 0xad, 0x1e, 0xbb, 0x8f, 0x63, 0x14, 0xa7, 0xae, 0xe8, - 0x89, 0xe8, 0x6d, 0x98, 0xd4, 0x4b, 0xd4, 0x95, 0x5a, 0xa7, 0xdb, 0xbe, 0xdb, 0x50, 0x9a, 0xf4, - 0xab, 0xa2, 0xc0, 0x17, 0xec, 0x21, 0xb3, 0x85, 0x32, 0x6b, 0x00, 0xcd, 0x41, 0x5c, 0x56, 0xee, - 0xd7, 0x9a, 0xfa, 0x3d, 0x54, 0xe4, 0xbc, 0xdf, 0xfd, 0xf5, 0xb6, 0xac, 0xa0, 0x77, 0x60, 0x42, - 0xaa, 0x63, 0x33, 0x56, 0x23, 0xc7, 0x40, 0x28, 0xe9, 0x47, 0x83, 0x7d, 0xdf, 0x89, 0x87, 0xba, - 0x89, 0x6b, 0x31, 0xb6, 0x20, 0xed, 0x18, 0x09, 0xe8, 0x03, 0x30, 0x6f, 0x69, 0xda, 0x16, 0x66, - 0x1a, 0x23, 0x40, 0x52, 0x5c, 0x2d, 0x6b, 0xa8, 0xe9, 0x1a, 0xcc, 0xaa, 0xb2, 0x7b, 0xd5, 0x71, - 0x1a, 0xa1, 0x52, 0x65, 0x67, 0x35, 0xf1, 0xdf, 0xc5, 0x60, 0xda, 0xc6, 0xb5, 0x74, 0xd7, 0x26, - 0xb0, 0x12, 0xf1, 0xdb, 0x20, 0x71, 0x28, 0x87, 0x68, 0x20, 0xe5, 0x30, 0x70, 0x28, 0xca, 0x61, - 0xf0, 0x30, 0x94, 0x43, 0xec, 0x09, 0x2a, 0x87, 0xf7, 0xba, 0x68, 0xf3, 0xb2, 0x05, 0x01, 0x64, - 0x2b, 0x71, 0x14, 0xb2, 0x35, 0xb2, 0x7f, 0xd9, 0x1a, 0xed, 0x23, 0x5b, 0x3f, 0x15, 0x83, 0xa4, - 0x69, 0x25, 0x43, 0xda, 0xe6, 0x45, 0x18, 0xe3, 0x19, 0xcd, 0x69, 0xa7, 0x47, 0xb9, 0x6c, 0x6a, - 0x38, 0xde, 0x17, 0xb3, 0xaf, 0x7d, 0x31, 0xe3, 0xe5, 0x63, 0x38, 0x80, 0x7c, 0xc0, 0x51, 0xc8, - 0x47, 0x62, 0xff, 0xf2, 0x31, 0xd2, 0x47, 0x3e, 0x5e, 0x80, 0x91, 0x15, 0xde, 0xad, 0x71, 0xf8, - 0x3e, 0x82, 0xd3, 0xf7, 0x11, 0xff, 0x7b, 0x04, 0xc6, 0xb9, 0xe9, 0x7d, 0x22, 0xe7, 0xc7, 0xdf, - 0x5f, 0x5f, 0x78, 0xae, 0x2f, 0xbe, 0x10, 0x81, 0x39, 0x8e, 0xdc, 0xc7, 0x2e, 0x6e, 0x69, 0x63, - 0x85, 0xa7, 0x1c, 0xb7, 0x74, 0xa1, 0xd4, 0xf1, 0x8a, 0x5b, 0x3a, 0x00, 0xba, 0xc4, 0x2d, 0xdd, - 0xcb, 0x84, 0x8c, 0x5b, 0x3a, 0x1a, 0x39, 0xe2, 0x10, 0xc4, 0x7f, 0x8e, 0xc0, 0x08, 0x0b, 0x84, - 0x10, 0x0b, 0xe3, 0x76, 0x1f, 0x84, 0xe3, 0x96, 0x76, 0x6e, 0x22, 0xce, 0xc2, 0x18, 0x31, 0x47, - 0x8a, 0xac, 0xdf, 0xf6, 0x4e, 0x9b, 0x1f, 0x61, 0xa9, 0xf4, 0xba, 0xf7, 0x79, 0x18, 0x26, 0xfa, - 0xee, 0x9e, 0xb2, 0x47, 0xa7, 0x60, 0xb8, 0x12, 0xc7, 0x09, 0xb7, 0x94, 0x3d, 0x0d, 0xad, 0xea, - 0x5a, 0x88, 0xde, 0xfa, 0x1b, 0x34, 0xae, 0x46, 0xe0, 0xf6, 0x57, 0x47, 0x47, 0xf9, 0xbd, 0x6d, - 0x3f, 0x5d, 0x21, 0x7e, 0x8f, 0xb9, 0x2b, 0x48, 0x60, 0x87, 0x5c, 0x3a, 0x5c, 0x76, 0x10, 0xd9, - 0xe6, 0xe3, 0xf4, 0xa1, 0x76, 0xd4, 0x4a, 0x6d, 0xb1, 0x6b, 0x45, 0xf2, 0xa4, 0x22, 0x21, 0x7d, - 0xfb, 0x7c, 0xcb, 0xd8, 0x8a, 0x25, 0x7d, 0x16, 0xf3, 0x07, 0xee, 0x4f, 0xfc, 0xbe, 0x01, 0x63, - 0xf7, 0x9b, 0xb4, 0xe9, 0x75, 0x97, 0xc9, 0xc1, 0x79, 0xf7, 0x02, 0x24, 0xf9, 0x52, 0x5c, 0xf4, - 0x7d, 0xcc, 0x2c, 0xa7, 0x87, 0xe0, 0x4d, 0x1a, 0x0c, 0x7a, 0x71, 0x79, 0xec, 0x49, 0x73, 0xf9, - 0xd0, 0xc1, 0xb8, 0x3c, 0x1e, 0x8a, 0xcb, 0xcf, 0x80, 0xbe, 0xd5, 0xcc, 0x1f, 0x2b, 0x4d, 0xb0, - 0xb4, 0x0d, 0xfb, 0x37, 0x5c, 0xf6, 0xc0, 0xbe, 0xf3, 0xe8, 0x55, 0xc2, 0xed, 0xe8, 0xd5, 0x22, - 0x4c, 0x5a, 0x8b, 0xf1, 0xb7, 0x9b, 0x4c, 0x58, 0xca, 0x92, 0xcd, 0x80, 0x9f, 0x8d, 0x18, 0xe1, - 0x6d, 0x4a, 0xb0, 0x43, 0x36, 0xbf, 0x37, 0x6d, 0xe6, 0xf7, 0x4a, 0x98, 0xd9, 0x7c, 0xca, 0xf6, - 0xf7, 0xc7, 0x05, 0x98, 0x5f, 0xa5, 0x8c, 0x7b, 0xec, 0x4e, 0x97, 0xfd, 0x8e, 0x60, 0xec, 0xfe, - 0x5a, 0xe6, 0xf1, 0x30, 0x9d, 0x83, 0xb7, 0xec, 0xce, 0xc1, 0xcb, 0xa1, 0x44, 0xd3, 0x6d, 0x18, - 0xbf, 0x2f, 0xc0, 0xac, 0x47, 0x21, 0xf4, 0x16, 0xef, 0x1e, 0x5c, 0x0b, 0xdf, 0xd5, 0x11, 0xfb, - 0x07, 0x59, 0xeb, 0x48, 0xfc, 0x0f, 0x5c, 0xfd, 0xb9, 0xcd, 0xd4, 0xbd, 0xd7, 0x4e, 0x5d, 0xfd, - 0xa4, 0x60, 0x9c, 0x31, 0xe6, 0xc6, 0x97, 0x93, 0xe5, 0xc0, 0xec, 0x29, 0x42, 0x9c, 0xc6, 0x00, - 0x9c, 0x96, 0x6d, 0x88, 0x64, 0x14, 0x2d, 0xc7, 0x9b, 0xa2, 0x3e, 0xc7, 0xa8, 0x06, 0x78, 0xea, - 0x7f, 0xd6, 0xdc, 0x1e, 0xe3, 0xd0, 0xb1, 0x03, 0x40, 0xc7, 0x01, 0xe0, 0xf7, 0xb8, 0x02, 0x64, - 0x07, 0x46, 0x8e, 0x14, 0xa0, 0xf8, 0xbf, 0x23, 0xc6, 0xd9, 0x03, 0x0e, 0xca, 0xfb, 0xfb, 0xf6, - 0x21, 0x84, 0x63, 0xd8, 0x67, 0xdf, 0xde, 0xe5, 0xa3, 0x92, 0xc7, 0x11, 0x58, 0x70, 0x52, 0xfd, - 0xb0, 0x0d, 0xf6, 0x86, 0xcd, 0x60, 0xbf, 0x14, 0x46, 0xf1, 0x1e, 0x8b, 0x1d, 0xfc, 0xbf, 0x11, - 0xe0, 0xb4, 0x37, 0xdd, 0xc2, 0x19, 0xc8, 0x20, 0xf2, 0x63, 0x4e, 0x41, 0xd4, 0x7d, 0x0a, 0x06, - 0xf8, 0x29, 0xb8, 0x63, 0xbf, 0x20, 0xf4, 0x03, 0xe1, 0x09, 0xec, 0x6a, 0x4a, 0xff, 0x58, 0x80, - 0x93, 0x7d, 0x8b, 0xa2, 0x3b, 0xbc, 0x41, 0x7d, 0x6d, 0xbf, 0xdd, 0x1e, 0xb1, 0x59, 0x7d, 0x14, - 0xa5, 0x97, 0x72, 0xb9, 0xaf, 0xb9, 0x67, 0x6d, 0x87, 0x5b, 0x0d, 0xf5, 0x63, 0x7e, 0xb8, 0x1f, - 0xe5, 0x3f, 0xdc, 0xb7, 0xae, 0x73, 0x06, 0xec, 0xeb, 0x9c, 0xbe, 0xeb, 0x92, 0xbc, 0x75, 0x5d, - 0xb2, 0x18, 0xe4, 0xc6, 0x97, 0xe3, 0xb6, 0x28, 0xe9, 0xa7, 0x92, 0xe6, 0x38, 0x5e, 0xa7, 0xea, - 0x48, 0x67, 0x71, 0xf1, 0x53, 0xec, 0x9a, 0x1a, 0x7e, 0x49, 0xee, 0xff, 0xe9, 0x67, 0xc0, 0x77, - 0xbb, 0xfa, 0xae, 0x88, 0x2d, 0xa8, 0x06, 0xac, 0xa8, 0x54, 0x0e, 0x14, 0x5b, 0x9d, 0xfb, 0x83, - 0xda, 0xdf, 0xba, 0xfc, 0x2a, 0x4c, 0x1a, 0x5d, 0x51, 0x13, 0x4c, 0x0e, 0x2b, 0xa7, 0x21, 0xaa, - 0xca, 0xcc, 0xad, 0x23, 0x42, 0xf1, 0x49, 0x21, 0x12, 0x17, 0x2a, 0x38, 0x51, 0xbc, 0x49, 0x2f, - 0xf5, 0xd2, 0xd7, 0xf1, 0xfb, 0x47, 0x26, 0x7e, 0x66, 0x90, 0xde, 0xce, 0xe6, 0xbd, 0x7c, 0x7f, - 0x5f, 0x0c, 0xc2, 0x89, 0x81, 0xc5, 0x39, 0x19, 0xb6, 0x39, 0x27, 0x56, 0x37, 0x04, 0xfa, 0xba, - 0x21, 0x09, 0xa7, 0x1b, 0x42, 0x1d, 0x9b, 0x11, 0xde, 0xb1, 0x99, 0x83, 0xb8, 0x11, 0x10, 0xa1, - 0x0f, 0x2e, 0x0c, 0xb5, 0x59, 0x24, 0xe4, 0x24, 0x00, 0xce, 0x62, 0x37, 0x2a, 0xd0, 0xe7, 0x16, - 0x86, 0xdb, 0xc6, 0x85, 0x2c, 0xf6, 0x20, 0xc2, 0x78, 0xff, 0x20, 0x42, 0xd2, 0x37, 0x88, 0x30, - 0xe1, 0x16, 0x44, 0xb0, 0x3b, 0x23, 0xc8, 0x79, 0x52, 0x9a, 0x17, 0xc3, 0x49, 0xab, 0x18, 0x7e, - 0x2e, 0x02, 0xb3, 0xe6, 0x24, 0x1f, 0xb7, 0xef, 0xb1, 0x2d, 0x82, 0xf3, 0x94, 0xef, 0x7b, 0x70, - 0x50, 0xe9, 0x68, 0x3e, 0x11, 0xb6, 0x75, 0x6b, 0xf3, 0x1b, 0xfe, 0x95, 0x00, 0x53, 0x6e, 0x25, - 0x42, 0x7e, 0x22, 0x6c, 0x6b, 0xc2, 0xc5, 0x4b, 0xd8, 0x38, 0x88, 0x97, 0xa0, 0x37, 0x96, 0x7a, - 0xc6, 0xc7, 0x5f, 0xf8, 0x85, 0x08, 0x9c, 0x20, 0x37, 0xaa, 0x11, 0x97, 0x45, 0xdb, 0x51, 0x3b, - 0x87, 0xcd, 0x92, 0x1f, 0xb2, 0xb1, 0x64, 0x20, 0x52, 0x99, 0xf0, 0x9e, 0xfe, 0x26, 0xd3, 0xbc, - 0x3b, 0xbd, 0x82, 0xde, 0xf0, 0x10, 0x2e, 0x88, 0x54, 0xb5, 0x07, 0x91, 0xae, 0x87, 0x23, 0x97, - 0x2b, 0x0f, 0xff, 0x89, 0x00, 0x73, 0x9e, 0xc5, 0x50, 0x95, 0x67, 0xe4, 0x97, 0xf7, 0xd3, 0xdd, - 0x53, 0xe3, 0xe6, 0x5f, 0x89, 0xd2, 0x8b, 0xf4, 0xad, 0xec, 0xe2, 0xbd, 0xea, 0xbe, 0x05, 0x89, - 0x26, 0x29, 0x5a, 0xe3, 0xee, 0x35, 0xf2, 0xdd, 0xd5, 0xa5, 0xad, 0xd3, 0x23, 0x13, 0x4d, 0xe3, - 0x7f, 0xcc, 0xfb, 0xd2, 0xf6, 0x76, 0x57, 0xd9, 0x96, 0x7a, 0x8a, 0xe9, 0x42, 0x24, 0x8c, 0x34, - 0xea, 0x29, 0xb4, 0xef, 0x5a, 0xfd, 0x88, 0x38, 0x4d, 0xe0, 0xe3, 0x1a, 0x83, 0xfc, 0x9a, 0xdc, - 0x6e, 0x6c, 0x62, 0x01, 0x3e, 0xcb, 0x39, 0x36, 0x3e, 0xb2, 0xd3, 0xa0, 0x82, 0x8b, 0x41, 0x15, - 0x17, 0x60, 0xb0, 0x28, 0x77, 0xfa, 0x3d, 0x31, 0xfb, 0xc5, 0x28, 0x44, 0x8b, 0x72, 0xe7, 0xc0, - 0x07, 0x0d, 0x8a, 0xf2, 0x71, 0x3f, 0x68, 0xf0, 0x16, 0x8c, 0x68, 0xbd, 0xbd, 0x86, 0xda, 0xda, - 0xe6, 0x0f, 0xdd, 0x2c, 0x06, 0x1a, 0x18, 0xa9, 0x46, 0xf8, 0x32, 0xa1, 0x99, 0x3f, 0x50, 0xd9, - 0x7a, 0x76, 0x21, 0xe0, 0xfb, 0x8d, 0x25, 0x55, 0xae, 0x17, 0xe5, 0x8e, 0xef, 0xf1, 0x85, 0xb8, - 0xf3, 0xf8, 0x82, 0x2a, 0x1b, 0xc7, 0x17, 0x3e, 0x2d, 0xc0, 0x70, 0x51, 0xee, 0xb0, 0xf5, 0xc6, - 0xbe, 0x2f, 0x79, 0xb0, 0x53, 0x25, 0x7a, 0x60, 0xaa, 0x88, 0xff, 0x22, 0x02, 0xa3, 0x96, 0x31, - 0x5a, 0xcf, 0x05, 0x0b, 0x7e, 0xe7, 0x82, 0x23, 0x2e, 0xe7, 0x82, 0xcd, 0x07, 0xcf, 0xa3, 0x96, - 0x07, 0xcf, 0x67, 0x20, 0xa6, 0xd5, 0xdb, 0x1d, 0x23, 0x66, 0xc9, 0x7e, 0x21, 0x15, 0x52, 0x98, - 0x56, 0xbc, 0x80, 0xd7, 0x9a, 0x52, 0xa7, 0xa3, 0xb6, 0xb6, 0xd9, 0xa6, 0x75, 0xa0, 0x83, 0x61, - 0xeb, 0xb4, 0xca, 0x0d, 0x55, 0x69, 0xc8, 0x95, 0x69, 0x55, 0xee, 0xe4, 0x4d, 0xed, 0xc0, 0xf2, - 0xd0, 0x47, 0x20, 0x89, 0x95, 0x9e, 0xa5, 0x8b, 0xd8, 0x3e, 0xbb, 0x18, 0xd7, 0x5b, 0x62, 0xa9, - 0xe2, 0x5f, 0x46, 0x61, 0xd2, 0x42, 0x4b, 0xb6, 0xe8, 0xf5, 0xbb, 0x71, 0xc4, 0x3e, 0xad, 0x91, - 0x83, 0x33, 0xfb, 0x79, 0x7e, 0x12, 0x5d, 0x9e, 0x0d, 0x30, 0x26, 0x34, 0x6b, 0x9f, 0xd0, 0x01, - 0x47, 0x61, 0xeb, 0xe4, 0x8a, 0xc6, 0xe4, 0x3a, 0x4f, 0xe5, 0x3b, 0x27, 0x3a, 0x16, 0x78, 0xa2, - 0x87, 0x0e, 0x7f, 0xa2, 0xe3, 0x4f, 0x6a, 0xa2, 0x3f, 0x61, 0x9f, 0x68, 0x26, 0xd8, 0xa7, 0x20, - 0x86, 0xc7, 0xe7, 0x14, 0xee, 0x41, 0x55, 0xee, 0x14, 0x65, 0xeb, 0xac, 0x44, 0xfa, 0xcc, 0x8a, - 0x43, 0xcc, 0xa2, 0x2e, 0x62, 0x66, 0xce, 0xc4, 0x40, 0x80, 0x99, 0x18, 0x0c, 0x3c, 0x13, 0xb1, - 0xc3, 0x9f, 0x89, 0xa1, 0x27, 0x35, 0x13, 0x9f, 0x8e, 0xc0, 0x04, 0x96, 0x83, 0x43, 0xf6, 0xd6, - 0xdf, 0xb0, 0x79, 0xeb, 0xe7, 0x03, 0xc8, 0xe6, 0xd3, 0xde, 0x87, 0x1e, 0x80, 0x21, 0x86, 0xe2, - 0x7d, 0x7f, 0x61, 0x3f, 0x2a, 0x74, 0x93, 0x5c, 0x1d, 0x70, 0x5f, 0x95, 0x75, 0xbf, 0x98, 0x32, - 0x6d, 0x36, 0x40, 0x9b, 0x65, 0x56, 0x8f, 0x34, 0x3a, 0xd2, 0xe1, 0x7e, 0xa1, 0x4d, 0xb7, 0x13, - 0x94, 0x57, 0x43, 0x79, 0x21, 0xec, 0x6d, 0xde, 0xa0, 0x07, 0x29, 0x27, 0x60, 0xdc, 0xf4, 0x44, - 0x6a, 0x98, 0x49, 0xc4, 0x7f, 0x1c, 0x81, 0x09, 0x47, 0x93, 0xfd, 0x0d, 0xbf, 0x69, 0xd3, 0x23, - 0x1e, 0x36, 0x3d, 0x1a, 0x58, 0xc1, 0x0c, 0x1c, 0xbe, 0x82, 0x19, 0x7c, 0x52, 0x0a, 0xe6, 0x7b, - 0x05, 0x48, 0x72, 0x0a, 0x66, 0x3f, 0xb1, 0x97, 0x9b, 0xf6, 0xd8, 0x4b, 0x20, 0xb6, 0x74, 0x5b, - 0xb1, 0x7e, 0x51, 0x80, 0x31, 0x6b, 0x1e, 0xba, 0xc9, 0x2f, 0x53, 0x2f, 0x05, 0x6e, 0xf8, 0x88, - 0xf7, 0x63, 0x1e, 0x47, 0x20, 0x41, 0xee, 0x33, 0xa7, 0xf7, 0xa0, 0xa3, 0x97, 0x60, 0x56, 0x6a, - 0x34, 0xda, 0x0f, 0x6a, 0xc6, 0xc4, 0x19, 0x77, 0xc2, 0xb3, 0x1b, 0xd0, 0x49, 0xf6, 0x6d, 0x96, - 0xab, 0x5f, 0x03, 0x8f, 0x57, 0x52, 0xb4, 0x5e, 0x57, 0xd9, 0x56, 0xb5, 0x1e, 0xe3, 0xc6, 0x78, - 0x65, 0x94, 0xa4, 0x56, 0x58, 0x22, 0xba, 0x04, 0x88, 0x16, 0x53, 0x3e, 0xd6, 0xc3, 0x2d, 0x34, - 0x6a, 0xaa, 0xdc, 0xd1, 0x2f, 0x63, 0x23, 0x39, 0x05, 0x96, 0x81, 0x57, 0x53, 0x4f, 0xf7, 0x9e, - 0x8b, 0x79, 0x18, 0xde, 0x6a, 0xe3, 0x95, 0x61, 0x73, 0x4b, 0x62, 0xb7, 0x2c, 0xc7, 0x49, 0xc2, - 0xfa, 0x96, 0x44, 0xae, 0x83, 0xe2, 0xe8, 0xa6, 0xf3, 0xdf, 0xb1, 0x22, 0x9f, 0x65, 0x00, 0x03, - 0xb6, 0x01, 0xbc, 0x0e, 0xa3, 0x9c, 0x3e, 0x2c, 0xe6, 0xd1, 0xf3, 0x30, 0xca, 0x69, 0x23, 0xa7, - 0xa7, 0x94, 0x50, 0x75, 0x9d, 0x54, 0x94, 0xc5, 0x2f, 0x50, 0x7e, 0xd7, 0xab, 0xe7, 0x64, 0x19, - 0x2d, 0xba, 0xd7, 0xe7, 0x7d, 0x1f, 0xbe, 0x09, 0xa4, 0xc0, 0x04, 0x2e, 0x6f, 0xd5, 0xe4, 0x91, - 0x7d, 0x69, 0x72, 0x4e, 0x60, 0xb0, 0x46, 0xe5, 0xb3, 0xc4, 0x1f, 0x14, 0x20, 0xc1, 0x15, 0x47, - 0xa2, 0x2b, 0x4c, 0x2b, 0xb4, 0x8f, 0xd8, 0xa0, 0x6d, 0xee, 0x1f, 0x9a, 0x13, 0xd0, 0x97, 0x23, - 0x30, 0xce, 0x71, 0x0e, 0x51, 0xf0, 0xdc, 0xfb, 0x01, 0x82, 0xe5, 0xfd, 0x80, 0x7e, 0x0c, 0x15, - 0x09, 0xc7, 0x50, 0xd1, 0xe0, 0x0c, 0x35, 0x10, 0x54, 0x1e, 0x8f, 0xf2, 0x1d, 0x29, 0x2b, 0x3b, - 0x0f, 0xd9, 0xd8, 0xf9, 0xbb, 0x05, 0x18, 0xe7, 0x48, 0x4f, 0xa8, 0x1a, 0x64, 0xaa, 0xdd, 0x2e, - 0x2a, 0xd3, 0x5f, 0xec, 0x88, 0x06, 0x7b, 0xb1, 0xa3, 0x28, 0x77, 0xb8, 0xd7, 0x29, 0xbe, 0x10, - 0x81, 0x39, 0x0e, 0xc8, 0xb1, 0xfb, 0x1e, 0xc2, 0x46, 0xa4, 0xa7, 0xe8, 0x07, 0xdf, 0x84, 0x94, - 0x0b, 0xa1, 0xf6, 0x61, 0xc7, 0x45, 0x09, 0x52, 0x06, 0x9b, 0xe6, 0xcb, 0x07, 0xf1, 0x08, 0x66, - 0x6d, 0x87, 0xa7, 0x8c, 0x33, 0x53, 0x78, 0x5a, 0x5d, 0xfa, 0x38, 0x36, 0xd3, 0xca, 0x61, 0x7b, - 0xca, 0xd3, 0xfa, 0x87, 0x11, 0x18, 0xb7, 0xa1, 0xf1, 0x0e, 0x70, 0x3b, 0x44, 0x34, 0xe2, 0x14, - 0xd1, 0x0b, 0x90, 0x34, 0xb4, 0x93, 0x75, 0x72, 0xc6, 0xf4, 0xf4, 0xdb, 0xb4, 0xb5, 0x39, 0x88, - 0xe3, 0xd6, 0xb8, 0xf3, 0x66, 0x43, 0xaa, 0xdc, 0xd9, 0xa0, 0x32, 0x9d, 0xb6, 0x36, 0xe2, 0xf2, - 0x24, 0xe7, 0x2c, 0xdf, 0x5c, 0xbe, 0x5f, 0x00, 0xfb, 0x48, 0xdf, 0x33, 0xfb, 0x76, 0xc1, 0xc2, - 0xde, 0xf4, 0xbc, 0x82, 0x79, 0x2d, 0xed, 0x51, 0x50, 0x56, 0x6c, 0xc1, 0x64, 0x55, 0xa9, 0xb7, - 0x5b, 0x32, 0x7b, 0x2e, 0x89, 0xb1, 0xe9, 0x1d, 0x18, 0xd3, 0x48, 0x72, 0x6d, 0x8b, 0xa6, 0x93, - 0xb3, 0x13, 0x01, 0xdc, 0x7b, 0xbe, 0x31, 0xfa, 0xb9, 0xa8, 0xc6, 0x37, 0x2f, 0x2a, 0x30, 0xc2, - 0x17, 0x41, 0xb7, 0x61, 0xd4, 0xd2, 0x51, 0xd0, 0x0b, 0x37, 0x1d, 0xfd, 0x8c, 0xf0, 0xfd, 0x88, - 0xdf, 0x02, 0x88, 0x7f, 0x04, 0x8a, 0x8d, 0x6a, 0x13, 0x46, 0x9b, 0x38, 0xd5, 0x36, 0x28, 0x5f, - 0x19, 0xe4, 0x9a, 0xa2, 0x7d, 0x35, 0xb9, 0xb6, 0x45, 0x09, 0x12, 0xfc, 0xb3, 0x50, 0x15, 0x18, - 0xe1, 0x3b, 0x61, 0x03, 0x0a, 0xdd, 0x47, 0x82, 0xeb, 0x43, 0xfc, 0xb3, 0x08, 0xa4, 0x74, 0x0f, - 0x80, 0xdc, 0x82, 0xa0, 0x7c, 0x4c, 0xed, 0xed, 0x31, 0xcf, 0xfe, 0x24, 0x40, 0x53, 0x6d, 0xd5, - 0x1a, 0x4a, 0x6b, 0xbb, 0xb7, 0xc3, 0xf4, 0xd4, 0x70, 0x53, 0x6d, 0xad, 0x91, 0x04, 0xf4, 0x2c, - 0x8c, 0xee, 0x48, 0x5a, 0xad, 0xd1, 0x7e, 0xa0, 0x74, 0xeb, 0x92, 0xa6, 0x30, 0xf7, 0x62, 0x64, - 0x47, 0xd2, 0xd6, 0xf4, 0x34, 0xbd, 0xd0, 0x6e, 0xa7, 0xc3, 0x0a, 0x45, 0x8d, 0x42, 0xb7, 0xf5, - 0x34, 0xdc, 0x11, 0x2e, 0xd4, 0xda, 0x6d, 0xde, 0x65, 0x11, 0xb0, 0x78, 0x65, 0x78, 0x47, 0xd2, - 0x36, 0x48, 0x82, 0x9e, 0xad, 0xed, 0x35, 0xef, 0xb6, 0x1b, 0xec, 0x61, 0x13, 0x9c, 0x5d, 0x25, - 0x09, 0x7d, 0xef, 0xd8, 0x7c, 0xaa, 0x1b, 0x49, 0xe2, 0xef, 0x0b, 0x70, 0xda, 0x8b, 0xba, 0xba, - 0x38, 0x7e, 0x6d, 0x10, 0x59, 0xfc, 0x4a, 0x04, 0x4e, 0x78, 0x0d, 0xc5, 0xc7, 0x21, 0xb5, 0x8e, - 0x30, 0xe2, 0x3b, 0xc2, 0x68, 0x90, 0x11, 0x0e, 0xf8, 0x8e, 0x70, 0xb0, 0xff, 0x08, 0x63, 0xfd, - 0xd8, 0xe8, 0x78, 0x3d, 0xbd, 0xf7, 0x15, 0x01, 0x26, 0x74, 0xda, 0xe7, 0xb6, 0x15, 0x26, 0x9d, - 0x0b, 0x30, 0xd2, 0x94, 0x3e, 0x56, 0x93, 0x48, 0x9b, 0x7b, 0x1a, 0x63, 0x1d, 0x68, 0x4a, 0x1f, - 0xcb, 0xe1, 0x7a, 0x7b, 0x1a, 0x55, 0xd6, 0x1d, 0xb5, 0xab, 0xd4, 0x1e, 0x48, 0xdd, 0x16, 0x2d, - 0x45, 0xc9, 0x3f, 0x46, 0xd3, 0xef, 0x48, 0xdd, 0x16, 0x29, 0xc9, 0x8f, 0x3d, 0xea, 0x37, 0xf6, - 0xa3, 0x5c, 0x52, 0x8b, 0x5b, 0xa6, 0x7e, 0x32, 0x86, 0x6e, 0x9e, 0x4c, 0x78, 0x62, 0x14, 0x10, - 0x3f, 0x1d, 0x81, 0x69, 0x47, 0x47, 0x3e, 0x8c, 0x6d, 0xef, 0x3f, 0x12, 0xa8, 0xff, 0xa8, 0xef, - 0x0c, 0x1c, 0xaf, 0xc7, 0x78, 0xbf, 0x9b, 0xa3, 0xcc, 0x5a, 0xbb, 0x7e, 0xaf, 0xbd, 0xdb, 0x63, - 0x1c, 0x78, 0x86, 0x8d, 0xbf, 0xd7, 0x53, 0x9a, 0x9d, 0x9e, 0x4e, 0xff, 0x04, 0x1e, 0x3f, 0x4b, - 0x42, 0x57, 0x60, 0x4a, 0xdb, 0x69, 0x3f, 0xa8, 0x35, 0x68, 0xc5, 0xda, 0x96, 0xa4, 0x36, 0x76, - 0xbb, 0xba, 0x16, 0x43, 0x38, 0x8f, 0xb5, 0x79, 0x83, 0xe6, 0x1c, 0x63, 0x56, 0xd4, 0x4c, 0x0d, - 0x68, 0xa1, 0x83, 0xce, 0x8e, 0x87, 0x41, 0x0e, 0xf1, 0x1f, 0x46, 0x60, 0xce, 0xb5, 0x57, 0x1f, - 0xde, 0xb4, 0x83, 0x89, 0x04, 0x07, 0x13, 0x0d, 0x34, 0x37, 0xc7, 0x8a, 0x49, 0x33, 0xdf, 0x00, - 0x23, 0x45, 0xa9, 0x59, 0x55, 0x7a, 0xbb, 0x9d, 0x6a, 0x4f, 0xe9, 0xa0, 0x13, 0x90, 0x52, 0xa5, - 0x66, 0x4d, 0xc3, 0x09, 0x35, 0xad, 0xa7, 0x74, 0x6a, 0xb7, 0x37, 0xf2, 0x85, 0x1b, 0xc5, 0x8d, - 0x42, 0x3e, 0xf9, 0x0c, 0x9a, 0x82, 0xa4, 0x2d, 0xf7, 0x6a, 0x52, 0x70, 0x49, 0x5d, 0x4a, 0x46, - 0x32, 0xbf, 0xc4, 0xde, 0x84, 0x26, 0x9b, 0x26, 0x68, 0x0e, 0xa6, 0x6f, 0x57, 0x0b, 0x95, 0xea, - 0x66, 0x6e, 0xb3, 0x50, 0xbb, 0xbd, 0x51, 0x2d, 0x17, 0x56, 0x8a, 0x37, 0x8a, 0x7a, 0xa3, 0x66, - 0x56, 0x6e, 0x65, 0xb3, 0xf8, 0x76, 0x21, 0x29, 0xa0, 0x19, 0x40, 0x66, 0x6a, 0x71, 0x83, 0xa5, - 0x47, 0xd0, 0x34, 0x4c, 0x98, 0xe9, 0xf9, 0xc2, 0x5a, 0x61, 0xb3, 0x90, 0x4f, 0x46, 0xad, 0x8d, - 0xac, 0x95, 0x56, 0x6e, 0x15, 0xf2, 0xc9, 0x01, 0x6b, 0xe1, 0xea, 0xed, 0x6a, 0xb9, 0xb0, 0x91, - 0x4f, 0x0e, 0x5a, 0x93, 0x8b, 0x1b, 0xc5, 0xcd, 0x62, 0x6e, 0x2d, 0x19, 0xcb, 0x7c, 0x03, 0xc4, - 0xe8, 0x7b, 0xed, 0xb8, 0xf3, 0xd5, 0xc2, 0x46, 0xbe, 0x50, 0xb1, 0x41, 0x9d, 0x80, 0x51, 0x96, - 0x7e, 0xa3, 0xb0, 0x9e, 0x5b, 0xc3, 0x38, 0xc7, 0x21, 0xc1, 0x92, 0x48, 0x42, 0x04, 0x21, 0x18, - 0x63, 0x09, 0xf9, 0xe2, 0xdb, 0x85, 0x4a, 0xb5, 0x90, 0x8c, 0x66, 0x72, 0x30, 0xb6, 0x2e, 0xd5, - 0x77, 0xd4, 0x96, 0x72, 0x4b, 0xd9, 0x23, 0x5b, 0x20, 0x69, 0x98, 0x59, 0xcf, 0xad, 0xdc, 0x2c, - 0x6e, 0x14, 0x6e, 0x15, 0xde, 0xb1, 0xf5, 0x32, 0x09, 0xe3, 0x5c, 0xde, 0x87, 0xaa, 0xa5, 0x8d, - 0xa4, 0x90, 0xf9, 0x81, 0x08, 0x3d, 0xca, 0x6c, 0x84, 0xae, 0xd1, 0x49, 0x98, 0x23, 0xa3, 0x28, - 0xe4, 0x2a, 0x2b, 0x37, 0x9d, 0xad, 0xcc, 0xc3, 0xac, 0x2d, 0xbb, 0x5a, 0xa8, 0xd4, 0x36, 0x72, - 0xeb, 0x18, 0xf5, 0x09, 0x48, 0x59, 0x33, 0x6f, 0x14, 0x2b, 0xd5, 0x4d, 0x9a, 0x1b, 0x71, 0x56, - 0x5d, 0xcb, 0xe9, 0x99, 0x51, 0x67, 0xe6, 0x46, 0x71, 0xe5, 0x16, 0xcd, 0x1c, 0x40, 0xa7, 0x20, - 0x6d, 0xcd, 0xcc, 0x17, 0xab, 0xe5, 0xb5, 0xdc, 0x3b, 0x34, 0x7f, 0x10, 0xcd, 0xc2, 0xa4, 0x35, - 0xbf, 0xb0, 0x9e, 0x2b, 0xae, 0x25, 0x63, 0xce, 0x0c, 0x32, 0x39, 0xc9, 0x21, 0x83, 0x0f, 0x8c, - 0x8c, 0xcd, 0x77, 0xca, 0x85, 0x64, 0x3c, 0xf3, 0x57, 0x11, 0xbc, 0x6e, 0x31, 0x83, 0xef, 0xb8, - 0x05, 0x5a, 0x68, 0xbd, 0xb0, 0x79, 0xb3, 0x94, 0xaf, 0x15, 0xde, 0xba, 0x9d, 0x5b, 0xab, 0x26, - 0x9f, 0xc1, 0x63, 0xb5, 0x64, 0x54, 0x37, 0x73, 0x95, 0xcd, 0x6a, 0xed, 0x4e, 0x71, 0xf3, 0x66, - 0x52, 0xc0, 0x8c, 0x69, 0xc9, 0x5d, 0x29, 0x6d, 0x6c, 0xe6, 0x8a, 0x1b, 0xd5, 0x64, 0x04, 0x3d, - 0x0b, 0xa7, 0x5d, 0x5a, 0xac, 0x15, 0x57, 0x37, 0x4a, 0x95, 0x42, 0x6d, 0x25, 0x87, 0xa7, 0x16, - 0x5d, 0x80, 0xb3, 0x5e, 0xad, 0x5b, 0x4a, 0x0e, 0xa0, 0x73, 0x70, 0xc6, 0xb5, 0x27, 0x4b, 0xb1, - 0x41, 0x4c, 0x5f, 0x4b, 0xb1, 0x8d, 0xd2, 0xa6, 0x3e, 0x96, 0x18, 0x9e, 0x73, 0x4b, 0xe6, 0x6a, - 0xa5, 0x90, 0xdb, 0x2c, 0x54, 0x6a, 0x9b, 0x37, 0x73, 0x1b, 0xc9, 0x21, 0xcc, 0x55, 0x96, 0xec, - 0xb5, 0x42, 0xb5, 0x4a, 0xf3, 0xe2, 0x8e, 0xbc, 0x62, 0xb5, 0x56, 0xda, 0x28, 0xd4, 0x4a, 0x37, - 0x92, 0xc3, 0x78, 0xda, 0xac, 0xf5, 0x8a, 0xd5, 0x4d, 0x93, 0x12, 0x90, 0xc9, 0xc3, 0x10, 0x7b, - 0x2c, 0x17, 0x93, 0x79, 0xfd, 0x46, 0x0e, 0x4f, 0x82, 0x8d, 0xdf, 0xc6, 0x21, 0xa1, 0x67, 0x54, - 0xd7, 0xab, 0x54, 0x32, 0xf4, 0x84, 0xd2, 0x66, 0x39, 0x19, 0xc9, 0x6c, 0x41, 0x5c, 0x7f, 0x34, - 0x17, 0xa5, 0x60, 0x0a, 0xff, 0xef, 0xa2, 0x0e, 0x66, 0x00, 0x19, 0x39, 0x78, 0xec, 0x95, 0x42, - 0x2e, 0xff, 0x4e, 0x52, 0xc0, 0x72, 0x65, 0xa4, 0xd3, 0xb4, 0x08, 0x96, 0x7a, 0x2e, 0x6d, 0xbd, - 0xf4, 0x36, 0xd6, 0x05, 0x99, 0x9b, 0x90, 0xb4, 0xbf, 0x67, 0x8b, 0x47, 0xbf, 0x51, 0xda, 0x2c, - 0xde, 0x28, 0xae, 0xe4, 0x36, 0x8b, 0xa5, 0x0d, 0x82, 0x8a, 0xf2, 0xde, 0x33, 0x18, 0x8b, 0x23, - 0x8f, 0x0c, 0x21, 0xb3, 0x0b, 0x09, 0x6a, 0x34, 0x28, 0xe8, 0x79, 0x98, 0x2d, 0x97, 0xd6, 0x8a, - 0x2b, 0xef, 0x78, 0xe0, 0xe6, 0x33, 0x0d, 0x45, 0x96, 0x82, 0x29, 0x3e, 0x9d, 0x53, 0x65, 0xb3, - 0x30, 0xc9, 0xe7, 0x18, 0xca, 0x2c, 0x53, 0x86, 0xb8, 0xfe, 0x8c, 0x2a, 0xae, 0x5e, 0xaa, 0xac, - 0xba, 0x75, 0x38, 0x09, 0xe3, 0x46, 0x8e, 0xd1, 0xdb, 0x34, 0x4c, 0x18, 0x89, 0x66, 0x57, 0x99, - 0xef, 0x12, 0xb8, 0x97, 0x05, 0xad, 0x6f, 0x30, 0xa2, 0xf3, 0xf0, 0x6c, 0xa9, 0xb2, 0x9a, 0x2f, - 0xad, 0xe7, 0x8a, 0x1b, 0x6f, 0xe7, 0xd6, 0x8a, 0x79, 0x93, 0x0a, 0xd6, 0x0e, 0x17, 0xe0, 0x84, - 0x57, 0xc1, 0x9b, 0x9b, 0x9b, 0xe5, 0xa4, 0x80, 0x4e, 0xc3, 0xbc, 0x57, 0x89, 0x3c, 0x16, 0xa9, - 0xcc, 0x1d, 0x40, 0xce, 0xe7, 0xed, 0x90, 0x08, 0xa7, 0x8c, 0x6a, 0x5e, 0xea, 0xec, 0x24, 0xcc, - 0xb9, 0x94, 0xa1, 0xbf, 0x93, 0x42, 0xe6, 0xd7, 0x05, 0xd2, 0xb2, 0xed, 0x73, 0x2b, 0xd6, 0xf2, - 0x7a, 0x61, 0x7d, 0xd9, 0x5b, 0x51, 0x9e, 0x81, 0x93, 0x2e, 0x65, 0x38, 0x85, 0x28, 0xb0, 0x91, - 0xdb, 0x8b, 0x98, 0x5a, 0x31, 0x82, 0x95, 0x8c, 0x4b, 0x09, 0xca, 0x61, 0x51, 0x2c, 0x5f, 0x6e, - 0x30, 0xb0, 0x42, 0x2e, 0xe6, 0x93, 0x03, 0x99, 0x3b, 0xc6, 0x45, 0x13, 0x26, 0xf4, 0x05, 0x38, - 0x51, 0xae, 0x94, 0x3e, 0x54, 0x58, 0xd9, 0xec, 0x03, 0xdc, 0x51, 0x82, 0x25, 0x30, 0xe0, 0x99, - 0x6f, 0x36, 0x6e, 0x5e, 0xa1, 0xdc, 0x74, 0x02, 0x52, 0x7a, 0x15, 0x17, 0x8e, 0xc2, 0x0c, 0xc9, - 0xe7, 0x1a, 0x5c, 0x35, 0x07, 0xd3, 0x96, 0x0c, 0x8e, 0xb3, 0xbe, 0xdd, 0x7c, 0x41, 0xc6, 0x72, - 0x31, 0x36, 0x3a, 0x0b, 0x0b, 0xac, 0x4e, 0xa5, 0xb4, 0x56, 0xf0, 0x1a, 0x83, 0x09, 0xc8, 0x5a, - 0xea, 0x56, 0x01, 0xcb, 0xfc, 0x39, 0x38, 0xe3, 0x9a, 0x6b, 0xb1, 0x2a, 0x91, 0xcc, 0x57, 0xcc, - 0x1b, 0xbe, 0xed, 0x0c, 0xf0, 0x1c, 0x88, 0xac, 0x85, 0xfe, 0x4c, 0x60, 0xf6, 0xd4, 0x97, 0x11, - 0xcc, 0x41, 0xf5, 0x63, 0x06, 0x73, 0xea, 0xbc, 0x18, 0x42, 0x84, 0x53, 0x5e, 0xb0, 0x74, 0xa6, - 0xe8, 0xd3, 0x97, 0x69, 0xc9, 0x07, 0xb1, 0xae, 0xd0, 0xaf, 0xcc, 0xc2, 0xba, 0x22, 0x57, 0x2e, - 0x7b, 0xe8, 0x0a, 0x23, 0x87, 0xd7, 0x15, 0x46, 0x22, 0x37, 0xa3, 0xf3, 0x90, 0xe0, 0xae, 0x0b, - 0x44, 0x23, 0x10, 0x27, 0x3f, 0xaf, 0xd6, 0xae, 0x24, 0x9f, 0xc9, 0xbc, 0x09, 0xa3, 0x96, 0xfb, - 0xcb, 0x88, 0x7e, 0xe2, 0x13, 0x6a, 0xcb, 0x8a, 0xd4, 0x55, 0xba, 0xc9, 0x67, 0x88, 0x2a, 0xb2, - 0xe4, 0x7c, 0xe8, 0xce, 0x66, 0x52, 0xc8, 0x7c, 0x94, 0x5e, 0xc4, 0xc7, 0xdf, 0x60, 0x87, 0xf9, - 0x8b, 0xa4, 0x15, 0xaa, 0xe5, 0xd2, 0x46, 0xb5, 0x40, 0x14, 0xc6, 0x4a, 0x29, 0x5f, 0x60, 0x72, - 0x6f, 0xcf, 0x2a, 0xe6, 0x6b, 0x9b, 0xa5, 0x5b, 0x85, 0x8d, 0xa4, 0x80, 0x6d, 0xb4, 0x67, 0x36, - 0x2b, 0x14, 0xc9, 0x74, 0x29, 0x68, 0xe3, 0x7a, 0x3b, 0x4c, 0x5a, 0x92, 0x50, 0xc9, 0x6d, 0x6c, - 0x92, 0x2a, 0xb9, 0xdb, 0x9b, 0x37, 0x4b, 0x95, 0xe2, 0x87, 0x89, 0xbe, 0xd2, 0xbb, 0x4e, 0xc3, - 0x8c, 0xb5, 0x54, 0x71, 0xbd, 0xbc, 0x56, 0x5c, 0x29, 0x6e, 0x32, 0x4d, 0x67, 0xc9, 0xab, 0x14, - 0x6e, 0x54, 0x0a, 0xd5, 0x9b, 0x46, 0x9f, 0xf7, 0x61, 0xd2, 0xe5, 0xf6, 0x3b, 0x6c, 0x42, 0x48, - 0x72, 0x19, 0xb7, 0x64, 0x6a, 0xc7, 0x3b, 0x85, 0xe5, 0xe4, 0x33, 0x44, 0x5b, 0xb9, 0x64, 0x92, - 0xe9, 0xce, 0xad, 0x16, 0x36, 0x70, 0xc7, 0x58, 0x95, 0xb8, 0x94, 0xd9, 0xc8, 0xb1, 0xd9, 0x6b, - 0x00, 0x72, 0xde, 0x8a, 0x47, 0xd4, 0x13, 0x4e, 0xbd, 0xbd, 0xc9, 0x4c, 0x3c, 0xa9, 0xb4, 0x9c, - 0xab, 0x16, 0x57, 0xa8, 0xab, 0xe8, 0x92, 0x5b, 0x2e, 0x55, 0x71, 0x87, 0xee, 0x99, 0x1b, 0xa5, - 0x0d, 0xdc, 0x5b, 0x0d, 0xa6, 0xdc, 0x6e, 0x97, 0xc2, 0x04, 0xe6, 0x10, 0x56, 0x0b, 0x95, 0x9c, - 0x87, 0x02, 0xb3, 0x94, 0xd2, 0xf9, 0x3b, 0x57, 0x2e, 0xeb, 0x0a, 0xac, 0x67, 0x5c, 0x79, 0x6f, - 0x7e, 0x09, 0xc7, 0x29, 0x3e, 0x42, 0x7f, 0x37, 0x86, 0x37, 0xf5, 0x0a, 0x57, 0xc4, 0xe0, 0xfc, - 0x53, 0x90, 0x76, 0xe6, 0x72, 0x22, 0xf0, 0xbd, 0xb6, 0x0b, 0x18, 0xcc, 0x81, 0x99, 0x7a, 0x82, - 0xd6, 0xf4, 0x50, 0x27, 0xa6, 0xda, 0xb1, 0x15, 0xb3, 0xea, 0x67, 0x4e, 0x0f, 0xd8, 0xca, 0x61, - 0x7d, 0x47, 0x94, 0x60, 0x24, 0xf3, 0x19, 0xf3, 0x16, 0x7a, 0xb7, 0x4f, 0x8a, 0xd1, 0xf3, 0x70, - 0x9e, 0x6f, 0xa3, 0xbf, 0x9e, 0xcb, 0xc0, 0x73, 0xfd, 0x0a, 0x5b, 0x94, 0xdd, 0x45, 0x38, 0xd7, - 0xaf, 0x2c, 0xaf, 0xf1, 0x6c, 0x64, 0xf1, 0x52, 0x7b, 0xe7, 0xe1, 0xd9, 0xbe, 0x50, 0x0d, 0xdd, - 0xe7, 0xd3, 0x35, 0xaf, 0x00, 0x77, 0x60, 0xcc, 0xfa, 0xa1, 0xa4, 0xbe, 0x08, 0xf1, 0xe4, 0x0d, - 0xb6, 0x16, 0x75, 0x63, 0x0c, 0xb6, 0xb8, 0x71, 0xe7, 0x8a, 0xbf, 0x66, 0x9f, 0x94, 0xd8, 0x58, - 0x42, 0x84, 0x53, 0x66, 0x1d, 0x6f, 0x53, 0xed, 0x52, 0x46, 0x67, 0x86, 0x62, 0x9e, 0xf2, 0xa4, - 0x5b, 0x33, 0x8c, 0x24, 0x11, 0x7d, 0xb9, 0x67, 0xcb, 0x2f, 0x55, 0x56, 0x71, 0x76, 0x14, 0x2b, - 0x24, 0x97, 0x6c, 0x83, 0x8d, 0x06, 0x3c, 0x0a, 0x90, 0x9f, 0xb8, 0x85, 0x41, 0x6c, 0xb5, 0xbc, - 0x00, 0x10, 0x52, 0xc7, 0x3c, 0x46, 0xc1, 0xf1, 0xcc, 0x90, 0x47, 0x23, 0x26, 0xab, 0xc4, 0xf5, - 0xa5, 0xa7, 0xad, 0x04, 0xe5, 0x90, 0x61, 0x0f, 0x94, 0x78, 0x94, 0xa4, 0x3a, 0x78, 0x60, 0xc0, - 0x05, 0x98, 0x2f, 0x98, 0xc0, 0x36, 0xa1, 0x0f, 0xb1, 0x49, 0x3b, 0x23, 0x1e, 0x85, 0x2c, 0x8e, - 0xc5, 0x68, 0xe6, 0xfb, 0x04, 0xfa, 0x81, 0xa6, 0xcb, 0x57, 0x4d, 0x98, 0x97, 0x71, 0x03, 0x8c, - 0x35, 0x6f, 0x16, 0xcb, 0x5e, 0x73, 0xcf, 0x48, 0xe2, 0x56, 0x90, 0xac, 0x65, 0x89, 0x9b, 0xe3, - 0x55, 0xa2, 0xb4, 0xac, 0x73, 0x48, 0x24, 0xf3, 0x10, 0xc0, 0xfc, 0xde, 0x88, 0x44, 0x10, 0x48, - 0x05, 0x17, 0x4f, 0x7d, 0x1e, 0x66, 0xb9, 0xbc, 0x52, 0x65, 0x35, 0xb7, 0x51, 0xac, 0x12, 0x25, - 0x4b, 0x23, 0x2b, 0x5c, 0x26, 0x23, 0x0b, 0x75, 0x61, 0x9d, 0xe9, 0x94, 0x41, 0x92, 0xd1, 0xcc, - 0x2d, 0x7a, 0xea, 0x8e, 0x3b, 0x1b, 0x7a, 0x0a, 0xd2, 0xc5, 0x7c, 0xb9, 0xba, 0xf9, 0xce, 0x5a, - 0x71, 0x63, 0xd5, 0x05, 0xc4, 0x1c, 0x4c, 0xdb, 0xf2, 0x57, 0x4b, 0xa5, 0xd5, 0x35, 0xac, 0xd5, - 0xef, 0x42, 0x5c, 0x3f, 0x4e, 0xcb, 0x9a, 0x59, 0x29, 0x6d, 0xdc, 0x28, 0xae, 0x7a, 0x48, 0xab, - 0x2d, 0x9f, 0x97, 0x56, 0x5b, 0x16, 0x27, 0xad, 0x7b, 0xd4, 0xcf, 0xe0, 0x4f, 0x36, 0x12, 0x3f, - 0x1e, 0xa7, 0xe5, 0xca, 0xe5, 0xe2, 0xc6, 0xea, 0x8d, 0x62, 0x61, 0x2d, 0x6f, 0xeb, 0x0d, 0x2f, - 0x86, 0xec, 0x25, 0xca, 0x95, 0xc2, 0x8d, 0x42, 0xa5, 0x52, 0xc8, 0x13, 0x61, 0x60, 0xca, 0x91, - 0x39, 0x07, 0x96, 0x82, 0x94, 0x89, 0x23, 0x99, 0xef, 0x10, 0x60, 0x84, 0x3f, 0x65, 0x88, 0x49, - 0x8b, 0x49, 0xe1, 0xc1, 0x20, 0x8c, 0x90, 0x46, 0x6e, 0x31, 0x5f, 0xae, 0xd1, 0x41, 0x51, 0xcd, - 0x30, 0x0d, 0x13, 0x96, 0x7c, 0xa6, 0x73, 0xed, 0xd5, 0xca, 0x95, 0xd2, 0xdb, 0xc5, 0x7c, 0xa1, - 0x42, 0xb9, 0x2a, 0x9a, 0xb9, 0x41, 0xce, 0x3e, 0xeb, 0x8b, 0xf6, 0x62, 0xbe, 0xec, 0x32, 0x47, - 0x49, 0x18, 0xd1, 0x33, 0xf0, 0x68, 0x92, 0x02, 0x9f, 0x52, 0xcd, 0xad, 0xe3, 0xd1, 0x6c, 0x5b, - 0x8e, 0xfb, 0x90, 0xf6, 0x4e, 0xc3, 0x7c, 0x31, 0x5f, 0xd6, 0x3b, 0x74, 0x69, 0x37, 0x0d, 0x33, - 0xf6, 0x02, 0xd5, 0x77, 0xaa, 0x9b, 0x85, 0xf5, 0xa4, 0xc0, 0xc0, 0x58, 0xf2, 0x4a, 0x95, 0xd5, - 0x64, 0x24, 0xf3, 0x61, 0xe3, 0x39, 0x2f, 0xdd, 0x55, 0x62, 0x4c, 0xe8, 0xd2, 0xc1, 0x34, 0x4c, - 0xf0, 0x99, 0xa5, 0x3b, 0x1b, 0x85, 0x3c, 0x6d, 0x9b, 0x4f, 0x26, 0xcc, 0x5b, 0xc0, 0xb2, 0xb3, - 0x03, 0x49, 0xfb, 0x06, 0x35, 0xe6, 0x86, 0x6a, 0x61, 0xa5, 0xb4, 0x91, 0xbf, 0x91, 0x5b, 0xd9, - 0x2c, 0xb9, 0x0d, 0x23, 0x05, 0x53, 0x8e, 0x12, 0x25, 0xb2, 0xd2, 0x75, 0xcb, 0xb9, 0xbd, 0x74, - 0x23, 0x19, 0xc9, 0x6c, 0xc2, 0xb8, 0x6d, 0xe7, 0x18, 0x93, 0x6b, 0xfd, 0xf6, 0xda, 0x66, 0xd1, - 0xb3, 0x9f, 0x05, 0x38, 0xe1, 0x28, 0xb0, 0x74, 0x83, 0x06, 0x91, 0xca, 0x78, 0x7d, 0xbb, 0xf4, - 0x67, 0xbf, 0x2d, 0xc0, 0xc4, 0xba, 0xb1, 0x47, 0x5d, 0x55, 0xba, 0xf7, 0xd5, 0xba, 0x82, 0x6e, - 0xc1, 0xd0, 0x4d, 0x45, 0x6a, 0xf4, 0x76, 0x3e, 0x8e, 0x66, 0x1c, 0x11, 0xdf, 0x42, 0xb3, 0xd3, - 0xdb, 0x4b, 0x7b, 0xa4, 0x8b, 0xc9, 0x47, 0x5f, 0xfe, 0x2f, 0x9f, 0x8a, 0x00, 0x8a, 0x67, 0x77, - 0x58, 0x0b, 0xab, 0x30, 0x58, 0x51, 0x24, 0x79, 0x2f, 0x74, 0x53, 0x63, 0xa4, 0xa9, 0x38, 0x8a, - 0x65, 0xbb, 0xa4, 0xfe, 0x06, 0xc4, 0x59, 0x8c, 0x41, 0xf1, 0x6c, 0x6b, 0xd6, 0x91, 0x5e, 0xed, - 0x75, 0x77, 0xeb, 0x3d, 0x71, 0x82, 0x34, 0x96, 0x40, 0xc3, 0xd9, 0xfb, 0x7a, 0x1b, 0x0d, 0x18, - 0x5b, 0x55, 0x7a, 0x1f, 0xa6, 0x3b, 0xf5, 0xf9, 0x76, 0x5d, 0xf3, 0x6c, 0xd5, 0xf7, 0x22, 0x74, - 0xae, 0x11, 0x71, 0x9a, 0xf4, 0x34, 0x8e, 0x46, 0xb3, 0xac, 0x7c, 0x56, 0xc6, 0x6d, 0x6f, 0x41, - 0x6c, 0x55, 0xe9, 0x15, 0xa5, 0xa6, 0x67, 0x2f, 0xcf, 0xfa, 0x9e, 0xfc, 0x92, 0x9a, 0xe2, 0xe9, - 0x47, 0x8f, 0x53, 0xe3, 0x30, 0x2a, 0xed, 0xf6, 0x76, 0x94, 0x56, 0x0f, 0x7b, 0xc8, 0x8a, 0x4c, - 0x3a, 0x8c, 0xa1, 0x81, 0xac, 0x2a, 0x35, 0xd1, 0x67, 0xb1, 0x96, 0xd0, 0xb0, 0x79, 0xb9, 0xdd, - 0x52, 0x3f, 0xba, 0xab, 0x20, 0xdf, 0x13, 0xf0, 0xb4, 0x1c, 0xae, 0xc1, 0xb6, 0x4e, 0xd2, 0x4b, - 0x61, 0xaa, 0xd0, 0x05, 0x97, 0x78, 0xfe, 0xd1, 0xe3, 0x54, 0x82, 0x5e, 0xe3, 0xb0, 0x88, 0xe7, - 0x8b, 0x80, 0x42, 0x28, 0x99, 0xc5, 0x29, 0x5a, 0xb6, 0xa6, 0x6a, 0xbb, 0x14, 0xcf, 0x77, 0x08, - 0x90, 0x58, 0x55, 0x7a, 0xb8, 0xf2, 0xf2, 0x5e, 0x31, 0x8f, 0x9e, 0x0b, 0xf2, 0x01, 0x70, 0x31, - 0x9f, 0xbe, 0x10, 0xa4, 0xdc, 0xdb, 0xaa, 0xf2, 0x40, 0x14, 0xdd, 0xa0, 0x8c, 0xa2, 0x04, 0x83, - 0xf2, 0x50, 0x95, 0xdf, 0x45, 0x3f, 0x2b, 0x40, 0xca, 0x40, 0x41, 0x4e, 0x73, 0x6e, 0x48, 0x4d, - 0x65, 0xb5, 0xd1, 0xbe, 0x2b, 0x35, 0xd0, 0x45, 0xbf, 0xae, 0x8c, 0x0a, 0x21, 0x50, 0xbd, 0xf2, - 0xe8, 0x71, 0x0a, 0xd1, 0xf3, 0xf4, 0x8b, 0xdb, 0xa4, 0x1f, 0x13, 0xdc, 0x09, 0x94, 0xce, 0xd2, - 0x34, 0x9d, 0x5c, 0x77, 0xf7, 0x1a, 0xb8, 0x0f, 0x72, 0x9c, 0xf1, 0xb3, 0x02, 0x24, 0xa8, 0xd6, - 0xc7, 0x8d, 0x69, 0x01, 0x66, 0x54, 0xb3, 0x1d, 0xc7, 0x4b, 0x2f, 0x85, 0xa9, 0xc2, 0x66, 0xf4, - 0x82, 0x1b, 0x19, 0x27, 0xc5, 0x31, 0x1d, 0xa2, 0x46, 0x8a, 0xbf, 0x2a, 0x64, 0xd0, 0x0f, 0x09, - 0x00, 0xf4, 0x83, 0x3c, 0xdc, 0x8c, 0x3f, 0x3e, 0xb3, 0xac, 0x8e, 0xef, 0x52, 0x10, 0x7c, 0x06, - 0xb2, 0x33, 0x8f, 0x1e, 0xa7, 0x46, 0x00, 0x08, 0xb2, 0x07, 0x5d, 0xb5, 0xa7, 0x50, 0xe1, 0x16, - 0x63, 0x14, 0x1a, 0x86, 0xf4, 0x13, 0x02, 0x8c, 0xe5, 0x15, 0xa9, 0xde, 0x53, 0xef, 0xeb, 0xb0, - 0x82, 0x32, 0x5a, 0x38, 0x2c, 0x4b, 0xae, 0x58, 0x4e, 0xa4, 0x67, 0x39, 0x6e, 0xcb, 0xd6, 0x64, - 0x03, 0x8a, 0x0e, 0xae, 0x72, 0x7c, 0xc0, 0x75, 0x2d, 0xe0, 0x7e, 0x50, 0x80, 0xf8, 0x5a, 0xbb, - 0x7e, 0xef, 0x10, 0x61, 0x5d, 0x72, 0x85, 0x35, 0x93, 0x9e, 0xb0, 0xc0, 0x6a, 0xb4, 0xeb, 0xf7, - 0x30, 0xa0, 0x4f, 0x0a, 0x00, 0xb7, 0x5b, 0x8d, 0xc3, 0x85, 0xb4, 0xe8, 0x0a, 0x29, 0x95, 0x9e, - 0xb4, 0x40, 0xda, 0x6d, 0xe9, 0xa0, 0xba, 0x00, 0x79, 0xa5, 0xa1, 0x84, 0x9c, 0x3d, 0x2f, 0x53, - 0x77, 0xf6, 0xd1, 0xe3, 0xd4, 0x28, 0x24, 0x48, 0xef, 0x32, 0x69, 0x96, 0xea, 0xac, 0x8c, 0x45, - 0x67, 0xfd, 0xb0, 0x40, 0xaf, 0x30, 0xa2, 0x97, 0x22, 0x6a, 0xc8, 0xf7, 0x0b, 0x6b, 0x5a, 0x50, - 0x97, 0xb1, 0xf3, 0xc1, 0x8a, 0x6b, 0x62, 0xc6, 0x4d, 0xf0, 0xa7, 0x91, 0x85, 0x14, 0x75, 0x86, - 0xe1, 0x17, 0x05, 0x18, 0xcd, 0xc9, 0xb2, 0xb9, 0x0f, 0x89, 0xfc, 0x2f, 0x0e, 0xe7, 0x8b, 0xeb, - 0xe0, 0xae, 0x85, 0xac, 0xc5, 0xa6, 0xed, 0x8a, 0xeb, 0xb4, 0xa5, 0xc5, 0x69, 0x1d, 0x2b, 0x3b, - 0x15, 0xf9, 0x6e, 0xf6, 0x9e, 0xb2, 0x47, 0x14, 0xc3, 0xa7, 0x05, 0x48, 0xd2, 0x99, 0xe3, 0x30, - 0xfb, 0x3e, 0x39, 0x61, 0x96, 0x2d, 0xe6, 0x75, 0xc8, 0x5e, 0x93, 0xf9, 0x92, 0x2b, 0xa6, 0x85, - 0xcc, 0x29, 0x57, 0x4c, 0xd9, 0x87, 0xf7, 0x94, 0x3d, 0xfc, 0x0b, 0xfd, 0xa6, 0x00, 0x13, 0x6c, - 0xef, 0xd1, 0xe8, 0x4d, 0x43, 0x2f, 0x07, 0x87, 0x66, 0x55, 0xf9, 0xaf, 0x84, 0xaf, 0xc8, 0x88, - 0xfa, 0xb2, 0xdb, 0xfc, 0x8b, 0xe2, 0x49, 0x77, 0xfc, 0x9c, 0x1d, 0xf8, 0x79, 0x01, 0x46, 0x57, - 0x95, 0xde, 0x41, 0x09, 0xbb, 0x18, 0xbc, 0x12, 0xb1, 0xac, 0xd7, 0xdc, 0xf0, 0x2e, 0x20, 0x3f, - 0x7a, 0xff, 0xa8, 0x40, 0x1c, 0x40, 0x2c, 0x51, 0xe5, 0x6e, 0x7b, 0x4b, 0x6d, 0x28, 0x81, 0xe5, - 0x38, 0x1b, 0xa4, 0x1c, 0x6b, 0x94, 0x40, 0x0c, 0x22, 0x52, 0x1d, 0x06, 0xe2, 0xe7, 0x04, 0x98, - 0xa0, 0x5f, 0x3d, 0xf3, 0xd0, 0x7c, 0xa7, 0xd3, 0x51, 0x45, 0x27, 0xe7, 0xf3, 0x21, 0xc0, 0x06, - 0xd3, 0x83, 0x0c, 0x29, 0x9e, 0xf2, 0xbf, 0x27, 0xc0, 0x08, 0x23, 0x62, 0x81, 0xdc, 0xad, 0x15, - 0x94, 0x84, 0x81, 0x2e, 0x8a, 0x22, 0x4d, 0x12, 0x02, 0xba, 0x3b, 0x23, 0xc8, 0x62, 0x31, 0xe8, - 0xe5, 0x5e, 0x3f, 0x2a, 0x00, 0xa2, 0x9a, 0x8c, 0x38, 0xc1, 0xfa, 0x2d, 0x62, 0xd7, 0x83, 0xd3, - 0x4f, 0xaf, 0xe3, 0x27, 0xe8, 0x1e, 0x66, 0x0c, 0x4d, 0xf1, 0xa0, 0xf4, 0xcf, 0x7e, 0xd0, 0xcf, - 0x08, 0x30, 0x6e, 0xe2, 0xa2, 0xc4, 0x7a, 0x29, 0x38, 0x28, 0x52, 0x41, 0x47, 0x74, 0x31, 0x30, - 0xf1, 0x82, 0xd9, 0x5a, 0x42, 0x39, 0x3c, 0x9d, 0x3f, 0x2d, 0xc0, 0x7c, 0x45, 0xd1, 0x94, 0x96, - 0x4c, 0x49, 0xaf, 0x74, 0x8d, 0x0d, 0xef, 0xf5, 0x30, 0xb3, 0xeb, 0x45, 0xb2, 0x37, 0x5d, 0xd1, - 0x64, 0xc4, 0x73, 0x0e, 0x34, 0xd8, 0x2d, 0xc1, 0x38, 0xee, 0x73, 0x10, 0x6c, 0x0c, 0x57, 0xde, - 0x69, 0xb7, 0x94, 0x27, 0xcb, 0x70, 0xa4, 0xc9, 0xc0, 0x0c, 0xd7, 0x21, 0x00, 0xac, 0x13, 0x4b, - 0x41, 0x85, 0x98, 0x58, 0x52, 0x21, 0xd4, 0xc4, 0x92, 0x1a, 0xc1, 0x26, 0x96, 0x20, 0xc4, 0x64, - 0xfb, 0xdb, 0x30, 0x4e, 0xbf, 0x3b, 0x08, 0x4f, 0x38, 0xaf, 0xb9, 0xbc, 0xe8, 0x0a, 0x60, 0x32, - 0xe3, 0x42, 0x22, 0x93, 0xad, 0x28, 0x81, 0xb9, 0x39, 0x5d, 0x69, 0xcb, 0xca, 0xd1, 0xb0, 0x15, - 0x81, 0xe2, 0xc5, 0x56, 0x9c, 0x31, 0xc8, 0xc9, 0x72, 0x57, 0xd1, 0xb4, 0x27, 0x6b, 0x0c, 0x58, - 0xa3, 0x81, 0x8d, 0x81, 0xc4, 0x40, 0x58, 0x8d, 0x81, 0x0e, 0x2d, 0x84, 0x31, 0x60, 0x55, 0x42, - 0x19, 0x03, 0x56, 0x27, 0x98, 0x31, 0x60, 0x48, 0x31, 0x11, 0xad, 0x60, 0x99, 0x95, 0xf6, 0x77, - 0x08, 0x69, 0x15, 0x56, 0x5c, 0x07, 0x9a, 0x0d, 0xe8, 0x04, 0x84, 0xf3, 0xe0, 0x9b, 0xb4, 0x12, - 0x06, 0xfb, 0x87, 0x02, 0xcc, 0x98, 0xab, 0x6a, 0xee, 0xfb, 0x9c, 0x00, 0xe4, 0xf5, 0xfa, 0x58, - 0x2d, 0x7d, 0x7d, 0x1f, 0x35, 0x19, 0xfe, 0x37, 0xdc, 0xb8, 0x82, 0x63, 0x61, 0xc3, 0x8b, 0xd1, - 0xbf, 0xec, 0x51, 0xe5, 0x8e, 0xc5, 0xfb, 0xc2, 0xfe, 0x23, 0x95, 0x71, 0xae, 0x93, 0x50, 0x63, - 0xb1, 0x7c, 0x99, 0xe4, 0x29, 0x6c, 0xdf, 0xe0, 0x4a, 0xe8, 0xe5, 0xcc, 0x9b, 0xfd, 0x91, 0x3e, - 0xb4, 0x7c, 0xcd, 0xf4, 0x6e, 0xf6, 0xa1, 0xfd, 0xcb, 0xa5, 0x77, 0xd1, 0x0f, 0x99, 0xa1, 0xa1, - 0xf5, 0x2d, 0x29, 0xb8, 0x04, 0x5e, 0x09, 0x74, 0x87, 0x1c, 0xff, 0x2d, 0x8f, 0x4f, 0xb4, 0x8a, - 0xf2, 0x0a, 0x86, 0xf0, 0xeb, 0x02, 0xcc, 0x57, 0x95, 0x96, 0x5c, 0x55, 0x7a, 0xfa, 0xb9, 0x5f, - 0xfe, 0x14, 0x18, 0xfa, 0xa0, 0xff, 0x07, 0x4c, 0xae, 0x15, 0xfd, 0x88, 0x9c, 0x77, 0x25, 0xf2, - 0xa2, 0x78, 0xd1, 0xa2, 0xd1, 0x58, 0xc3, 0x98, 0x0b, 0x5a, 0xb2, 0xa6, 0xf4, 0x5a, 0x5c, 0x0f, - 0x2c, 0xd0, 0x80, 0xaa, 0x4a, 0xaf, 0xd8, 0x52, 0x7b, 0xaa, 0xd4, 0x30, 0xbe, 0x2d, 0xf6, 0x95, - 0x2d, 0xbd, 0xa4, 0x1f, 0xca, 0xd7, 0x5c, 0x51, 0x9e, 0x13, 0x17, 0xdc, 0x51, 0xaa, 0x14, 0x87, - 0xfa, 0x71, 0x22, 0x80, 0x3f, 0x45, 0xf8, 0x15, 0x23, 0x67, 0xf8, 0x88, 0x87, 0xe1, 0x1b, 0xa9, - 0xe2, 0x0a, 0xfb, 0xc1, 0x7b, 0xdd, 0x15, 0xde, 0x73, 0xe2, 0x19, 0x5b, 0xf8, 0x03, 0x63, 0xd0, - 0xb1, 0x69, 0x06, 0xf1, 0xfe, 0x5c, 0x80, 0x69, 0x53, 0x41, 0x98, 0x9b, 0x75, 0x1a, 0x7a, 0x6d, - 0x3f, 0x77, 0x16, 0xea, 0x60, 0x5f, 0xdf, 0x5f, 0x65, 0xa6, 0x25, 0x8a, 0x8f, 0x1e, 0xa7, 0x66, - 0x60, 0x8a, 0x0c, 0xa9, 0x69, 0x14, 0x32, 0x79, 0xf8, 0xa2, 0x78, 0xd6, 0x21, 0x86, 0x66, 0x39, - 0x8b, 0xbe, 0xf8, 0x4e, 0x01, 0x86, 0x69, 0x24, 0xae, 0xd4, 0xdd, 0x46, 0xfe, 0x17, 0x7a, 0x74, - 0xd9, 0xa5, 0x5b, 0xfa, 0x40, 0x9e, 0x0d, 0x50, 0x43, 0x5c, 0xa0, 0x53, 0xd0, 0xee, 0x6e, 0x2f, - 0x92, 0xe3, 0xe5, 0x74, 0x0a, 0x40, 0x1c, 0xcc, 0xb6, 0xbb, 0xdb, 0x1a, 0x8b, 0x37, 0x01, 0x6e, - 0xfb, 0x90, 0x83, 0x1a, 0xd8, 0x9f, 0x03, 0x72, 0xef, 0xaf, 0x49, 0xac, 0x29, 0x84, 0x08, 0x0c, - 0x6b, 0x48, 0xe3, 0x1e, 0xc4, 0xf1, 0x22, 0x76, 0x0f, 0x53, 0xc5, 0x2b, 0x56, 0x7f, 0x3e, 0xc0, - 0xd8, 0x89, 0xad, 0x3f, 0xe5, 0xd2, 0x2d, 0xa0, 0x38, 0xed, 0xb6, 0xa9, 0xa0, 0xcf, 0x08, 0x30, - 0xb5, 0xaa, 0xf4, 0x4a, 0xdd, 0xed, 0xe5, 0x3d, 0x7a, 0x80, 0x91, 0xc5, 0xa0, 0x7d, 0x75, 0x1f, - 0x2d, 0x1d, 0x1c, 0xc9, 0x0b, 0x8f, 0x1e, 0xa7, 0x26, 0x60, 0x1c, 0x23, 0xb1, 0x87, 0x9f, 0x53, - 0x68, 0x46, 0x0f, 0x3f, 0x13, 0x5c, 0xb5, 0xbb, 0x7b, 0xf4, 0x02, 0x64, 0xf4, 0xad, 0x30, 0x6e, - 0x46, 0x51, 0xfb, 0x93, 0x24, 0x10, 0x3b, 0x2c, 0x52, 0xbd, 0x8b, 0x41, 0x98, 0x02, 0x39, 0x97, - 0x9e, 0xd2, 0xe9, 0x61, 0x8f, 0x94, 0x7e, 0x2b, 0x76, 0x5b, 0x8f, 0xb4, 0x7f, 0x6b, 0x30, 0xf4, - 0x4b, 0x44, 0x81, 0x92, 0x98, 0xcc, 0x9e, 0x71, 0xc4, 0x54, 0xf3, 0x77, 0xef, 0x6d, 0xc7, 0x51, - 0x75, 0x6e, 0x7d, 0x39, 0x74, 0x3d, 0x26, 0xf6, 0x57, 0x5d, 0xd8, 0xe8, 0xa4, 0x98, 0x32, 0x60, - 0xd3, 0xe9, 0xb2, 0x88, 0xf7, 0x67, 0x04, 0x18, 0xcb, 0xc9, 0x32, 0x87, 0xdb, 0x3f, 0x1a, 0x93, - 0x93, 0x65, 0xa3, 0x74, 0xe0, 0x25, 0x89, 0x51, 0x43, 0x77, 0x6c, 0xad, 0xd4, 0x9d, 0x16, 0x93, - 0x76, 0x98, 0x18, 0xde, 0x5f, 0x08, 0x70, 0x72, 0x55, 0x69, 0x29, 0x5d, 0x7d, 0x62, 0xed, 0xa7, - 0x88, 0xd1, 0xab, 0x81, 0x3b, 0x36, 0x2b, 0xe9, 0xa0, 0x5f, 0xdb, 0x57, 0x5d, 0x46, 0xec, 0x82, - 0xdb, 0x30, 0xae, 0x88, 0xcf, 0x3b, 0xa8, 0xfd, 0x90, 0xfe, 0xf3, 0xae, 0xbe, 0xa7, 0xa8, 0xb6, - 0x5b, 0x59, 0xaa, 0xe5, 0xf0, 0x08, 0x7f, 0x41, 0x80, 0x49, 0x7d, 0xc3, 0x92, 0x9f, 0x05, 0x5f, - 0x8f, 0x4c, 0xaf, 0xe4, 0x98, 0x8a, 0x7e, 0xce, 0x82, 0x03, 0x70, 0x56, 0xcc, 0x04, 0x03, 0xbc, - 0xa3, 0xd0, 0x90, 0xf6, 0xe7, 0x88, 0xbd, 0xeb, 0xad, 0xef, 0x95, 0xbb, 0x6a, 0x53, 0xea, 0x72, - 0x88, 0x03, 0xbc, 0x2b, 0x65, 0xad, 0xe1, 0x07, 0xf8, 0xba, 0x1b, 0xe0, 0xb3, 0xa2, 0xe8, 0x0d, - 0xb8, 0xd6, 0xa1, 0x5d, 0xe0, 0x85, 0x1a, 0xf3, 0x72, 0x79, 0x9a, 0xfa, 0x0a, 0x24, 0xad, 0x12, - 0x18, 0xe0, 0x15, 0x37, 0x80, 0xf3, 0x99, 0x39, 0x4f, 0x80, 0xe8, 0xfb, 0x05, 0x98, 0xd0, 0xcd, - 0x46, 0x51, 0x6a, 0xb2, 0x6f, 0xf2, 0xbc, 0x94, 0x55, 0x10, 0x6b, 0x6b, 0xb4, 0x42, 0xd4, 0xf7, - 0x65, 0xaf, 0x8d, 0x5f, 0xc3, 0x88, 0x35, 0x95, 0xac, 0x2a, 0x35, 0x3b, 0xb4, 0xe3, 0x1f, 0xa0, - 0x70, 0x8c, 0xc3, 0xeb, 0xf4, 0xe1, 0x2b, 0x2f, 0x38, 0x8b, 0x01, 0xe0, 0x70, 0xed, 0x10, 0xf2, - 0x30, 0x5b, 0x42, 0x9d, 0x0b, 0xeb, 0x3a, 0x96, 0xc1, 0x21, 0x5e, 0x47, 0x96, 0xde, 0x32, 0xfc, - 0x39, 0x4e, 0x1b, 0xb1, 0x87, 0xb5, 0x02, 0x6a, 0x23, 0xfd, 0x9d, 0xa5, 0xe0, 0xda, 0x88, 0xd6, - 0x20, 0x3a, 0x13, 0x41, 0x92, 0x03, 0xe9, 0xae, 0x94, 0x18, 0x50, 0x2c, 0x02, 0xbf, 0x2c, 0xc0, - 0x04, 0x75, 0x18, 0x78, 0xa0, 0x2f, 0x05, 0xf3, 0x31, 0x0e, 0x82, 0xf5, 0xb5, 0x3e, 0x58, 0x4f, - 0xa7, 0xd3, 0x76, 0xac, 0xa6, 0x73, 0x87, 0x51, 0x7f, 0xd6, 0x2a, 0x12, 0x41, 0x51, 0x1b, 0x22, - 0x61, 0x45, 0xdd, 0x4f, 0x66, 0x27, 0x61, 0x82, 0x83, 0xc8, 0xed, 0x54, 0x9d, 0xc8, 0xf4, 0xc1, - 0x88, 0x57, 0xa6, 0xbc, 0x15, 0x65, 0xce, 0x6d, 0x20, 0x2b, 0xea, 0xf2, 0x58, 0x50, 0x20, 0x2b, - 0xea, 0xf6, 0x38, 0x13, 0xd9, 0x82, 0xf7, 0x60, 0x5b, 0xde, 0x98, 0xea, 0x03, 0xe0, 0x8c, 0xe9, - 0x4f, 0x08, 0xc6, 0x43, 0xa0, 0x87, 0xed, 0xa8, 0x62, 0xd9, 0x1a, 0x33, 0x9e, 0x99, 0xb0, 0x3a, - 0x69, 0x2c, 0xd1, 0xe6, 0xb0, 0xfe, 0x82, 0x00, 0x63, 0x74, 0xa4, 0x0c, 0xa2, 0xe6, 0x1f, 0x73, - 0x71, 0x7b, 0x40, 0x31, 0x7d, 0x2d, 0x64, 0x2d, 0x2e, 0xf2, 0xe2, 0x86, 0x78, 0x46, 0x9c, 0x30, - 0x11, 0x73, 0xc4, 0xfc, 0x94, 0x60, 0x1c, 0xc9, 0x22, 0x27, 0x40, 0x2e, 0x06, 0xec, 0xb6, 0x98, - 0xf7, 0x0f, 0x5f, 0xb1, 0xa2, 0x44, 0x65, 0x5e, 0x22, 0x42, 0x65, 0xc1, 0x85, 0x22, 0x45, 0x8a, - 0x2d, 0x89, 0xc6, 0xac, 0xd4, 0x44, 0x3f, 0x26, 0xc0, 0x28, 0x5d, 0xe0, 0xb0, 0x36, 0x02, 0x13, - 0xd1, 0xba, 0x2c, 0x3a, 0x1f, 0xb0, 0x16, 0x59, 0x91, 0x24, 0x61, 0x4c, 0x87, 0xc7, 0x2d, 0x8f, - 0xc6, 0xc4, 0x61, 0x03, 0x1c, 0x26, 0xd8, 0x3f, 0x10, 0x60, 0x94, 0x06, 0xc9, 0xc2, 0x42, 0xa3, - 0xb5, 0x42, 0x43, 0xbb, 0x42, 0x64, 0x7d, 0x54, 0x87, 0x46, 0x74, 0x91, 0x41, 0xba, 0xc9, 0xb4, - 0x8d, 0x74, 0x18, 0xe2, 0xe7, 0x05, 0x98, 0x30, 0x57, 0x0a, 0x3a, 0xcc, 0x10, 0x33, 0x1b, 0x18, - 0xdb, 0xeb, 0xfd, 0xb0, 0x61, 0x5d, 0x69, 0x15, 0x12, 0xdb, 0x82, 0xe2, 0xf3, 0x44, 0x57, 0x1e, - 0x47, 0x9c, 0xd6, 0x85, 0xc7, 0x23, 0x01, 0x46, 0xa9, 0x82, 0xde, 0x07, 0x46, 0x2f, 0x15, 0x8e, - 0x05, 0x75, 0xca, 0xe4, 0x38, 0xaa, 0xbf, 0x4d, 0x91, 0xc8, 0xd8, 0x45, 0xe2, 0xf7, 0x8c, 0x08, - 0x88, 0xf5, 0xd9, 0xd5, 0x00, 0x11, 0x90, 0x3e, 0xef, 0xb4, 0xa6, 0x5f, 0x0d, 0xff, 0x76, 0xa8, - 0xa1, 0x6b, 0xae, 0x79, 0xe8, 0x1a, 0xac, 0xbf, 0xd9, 0xa3, 0xc6, 0x6e, 0x2a, 0xe7, 0x37, 0x04, - 0x98, 0x5e, 0x55, 0x7a, 0x56, 0x54, 0x44, 0xf9, 0x2c, 0x86, 0x01, 0x13, 0x24, 0xd6, 0x68, 0x7f, - 0x30, 0x57, 0x5c, 0xf1, 0x80, 0xfc, 0x3c, 0xba, 0xe8, 0x80, 0xfc, 0xd0, 0x7c, 0x06, 0xea, 0x5d, - 0x9a, 0xc9, 0xa6, 0xe2, 0xa7, 0xe8, 0x00, 0x2c, 0xdf, 0xa3, 0xf5, 0xf7, 0xe9, 0x82, 0x3e, 0x67, - 0xcb, 0xfb, 0x75, 0xd8, 0x40, 0x4e, 0xc3, 0xa4, 0x0e, 0xd5, 0x6e, 0x24, 0xe7, 0xd0, 0xac, 0xc9, - 0x21, 0x56, 0xff, 0xee, 0x2f, 0x05, 0x98, 0xb2, 0xd8, 0x20, 0xdd, 0xc8, 0xbf, 0x1a, 0x0a, 0x86, - 0x95, 0x51, 0x5e, 0xdb, 0x57, 0x5d, 0xc6, 0x29, 0xb7, 0x1f, 0x3d, 0x4e, 0x2d, 0xb8, 0x8e, 0x05, - 0x0d, 0xeb, 0xa2, 0xc2, 0x26, 0x42, 0x7c, 0x2e, 0xeb, 0x3e, 0x03, 0x2e, 0x9e, 0xc0, 0xaf, 0x08, - 0x90, 0xcc, 0xc9, 0xb2, 0xa5, 0x67, 0x74, 0x25, 0x14, 0xd0, 0x9c, 0x2c, 0xfb, 0xef, 0x46, 0x5a, - 0x6a, 0x90, 0xcd, 0x81, 0x34, 0x4c, 0xd9, 0x06, 0x63, 0xd5, 0x29, 0xf3, 0xa2, 0xdd, 0x41, 0xe0, - 0x3c, 0xdb, 0xdf, 0x11, 0x60, 0x92, 0x7a, 0x18, 0x56, 0xe4, 0x2f, 0x84, 0xc2, 0x41, 0x5b, 0x08, - 0x0b, 0xbe, 0x18, 0x00, 0xfc, 0xb9, 0xf4, 0x82, 0x3b, 0x78, 0xab, 0xab, 0xfb, 0xf3, 0x02, 0x4c, - 0x5a, 0xd4, 0xe2, 0xbe, 0x86, 0x41, 0x5b, 0xf0, 0x54, 0x93, 0xab, 0x8f, 0x1e, 0xa7, 0xe6, 0x61, - 0xda, 0x86, 0xd7, 0xa6, 0x2d, 0xc5, 0x8c, 0x2f, 0x60, 0xf4, 0xef, 0x0d, 0xbf, 0x97, 0xfb, 0x96, - 0x35, 0xc0, 0xf6, 0x92, 0xe3, 0xcb, 0xd7, 0xc0, 0xdb, 0x4b, 0x2e, 0x35, 0x99, 0x38, 0xbc, 0xf5, - 0xe8, 0x71, 0xea, 0x14, 0x4c, 0x18, 0x5a, 0xa8, 0xdd, 0x50, 0x5c, 0x85, 0xe1, 0xa2, 0x78, 0xd6, - 0x43, 0x18, 0x88, 0xa0, 0xf3, 0xa2, 0xf0, 0x73, 0x74, 0x4d, 0xc7, 0xf5, 0x19, 0x58, 0x9b, 0xe2, - 0xc2, 0x58, 0x0c, 0x9e, 0x0f, 0x51, 0x9e, 0x2c, 0x92, 0x52, 0xe4, 0x3a, 0x44, 0x73, 0x08, 0x56, - 0x2e, 0x9a, 0x13, 0xa7, 0x6c, 0x93, 0x42, 0x40, 0xb3, 0xe8, 0x06, 0x5a, 0xde, 0x6d, 0xdc, 0xb3, - 0x01, 0x5e, 0x0a, 0x07, 0x18, 0xb7, 0xe0, 0xc9, 0x37, 0x39, 0x5f, 0x7c, 0xa7, 0xc5, 0xb4, 0x1b, - 0xbe, 0x6c, 0xed, 0xee, 0x6e, 0x83, 0xc4, 0x60, 0xbe, 0x68, 0x2c, 0x40, 0x79, 0x90, 0x57, 0x43, - 0x80, 0x64, 0x22, 0x1a, 0x8a, 0xb0, 0x01, 0x80, 0xa7, 0xdd, 0x81, 0x3f, 0xbc, 0xa7, 0xec, 0xbd, - 0xcb, 0x0e, 0x8e, 0x4c, 0x58, 0x04, 0x33, 0x34, 0x70, 0x1f, 0xa1, 0xc4, 0x1a, 0x70, 0xce, 0x54, - 0xe7, 0x04, 0xa3, 0x4d, 0x24, 0xf1, 0x22, 0xd4, 0x13, 0x24, 0xfa, 0x4f, 0x86, 0x30, 0x72, 0xdf, - 0x96, 0x06, 0x10, 0x46, 0xc7, 0x97, 0xa8, 0x81, 0x85, 0xd1, 0xa5, 0x26, 0x13, 0xc6, 0x3b, 0x8f, - 0x1e, 0xa7, 0x4e, 0x42, 0x52, 0x1f, 0x8c, 0xd4, 0xe9, 0xb8, 0xca, 0xe2, 0x15, 0xf1, 0x79, 0x0f, - 0x59, 0x94, 0xb8, 0x21, 0xf0, 0x22, 0xf9, 0x3b, 0x02, 0x8c, 0x73, 0xdd, 0x12, 0x0f, 0xe7, 0x72, - 0x08, 0x9c, 0x41, 0x8e, 0x33, 0x70, 0xc5, 0x89, 0x7f, 0xf3, 0x56, 0xb0, 0xc1, 0x64, 0xd0, 0x85, - 0x20, 0x83, 0x21, 0xde, 0xce, 0x97, 0x04, 0x40, 0x5c, 0x37, 0x87, 0xbd, 0xe4, 0xfe, 0x10, 0x8d, - 0xbe, 0xd8, 0x47, 0x40, 0xb7, 0x5c, 0xd1, 0x25, 0x1b, 0x53, 0x59, 0xe1, 0x6a, 0x4a, 0xbd, 0xc6, - 0x2f, 0xc6, 0xff, 0x8d, 0x00, 0xd3, 0x6c, 0x57, 0xcd, 0xfa, 0xa1, 0x36, 0xba, 0x16, 0xe4, 0xca, - 0x7c, 0x7e, 0xd4, 0xa4, 0x15, 0x7f, 0x49, 0xe6, 0xaa, 0x10, 0xa7, 0x87, 0xd3, 0xf2, 0x78, 0x24, - 0x54, 0x90, 0x6d, 0x93, 0x71, 0x59, 0x0c, 0x34, 0x19, 0x6d, 0x55, 0xae, 0x63, 0xb6, 0xfa, 0x03, - 0xe3, 0x60, 0x07, 0x3f, 0xa0, 0xab, 0x21, 0x90, 0xd1, 0xda, 0x87, 0x34, 0x98, 0x74, 0x60, 0xce, - 0xc2, 0x83, 0xf9, 0x13, 0x01, 0xa6, 0xcd, 0xa5, 0x2a, 0x3f, 0xa0, 0x90, 0x92, 0x12, 0x6a, 0x30, - 0x52, 0xc0, 0xc1, 0x5c, 0x4f, 0xbf, 0x18, 0x74, 0x30, 0xf6, 0xb5, 0x2d, 0x1e, 0x58, 0xe5, 0xbd, - 0x31, 0x30, 0xeb, 0x62, 0xf8, 0x97, 0x0c, 0xe3, 0x72, 0x80, 0x41, 0x79, 0x19, 0x96, 0xea, 0xa3, - 0xc7, 0xa9, 0xd3, 0xa6, 0xf1, 0xc3, 0xf8, 0x99, 0x5d, 0xb1, 0x2b, 0xb0, 0x4c, 0x70, 0x05, 0xf6, - 0xdf, 0x04, 0x98, 0x77, 0x08, 0x0c, 0x96, 0x6f, 0xf6, 0xaa, 0x48, 0xa0, 0xe7, 0x33, 0xf8, 0x07, - 0x90, 0xd2, 0x99, 0xe0, 0x35, 0xc4, 0x46, 0xc0, 0x29, 0xc9, 0xa7, 0xdf, 0x08, 0x34, 0x22, 0xee, - 0x17, 0xc9, 0xc5, 0x6a, 0x81, 0x9e, 0xe4, 0xc1, 0xb3, 0xf3, 0xd7, 0x02, 0xa4, 0x2b, 0xca, 0x36, - 0xdb, 0xcb, 0x23, 0x30, 0xf8, 0xb7, 0x94, 0x42, 0x4e, 0x93, 0xef, 0x67, 0x1b, 0x7c, 0xe3, 0x62, - 0x2f, 0xe0, 0x48, 0xd7, 0xd2, 0xab, 0x81, 0x99, 0xcf, 0x1c, 0x5d, 0xb6, 0x46, 0xb5, 0x3a, 0x7d, - 0xaa, 0x85, 0xbe, 0x17, 0x85, 0x47, 0xfc, 0x1f, 0x05, 0x98, 0xb4, 0xf8, 0xf5, 0x64, 0xb1, 0xaf, - 0xa1, 0xeb, 0xfb, 0x09, 0x6c, 0x1c, 0x3c, 0x26, 0x62, 0xe3, 0x60, 0x12, 0x36, 0x70, 0x37, 0xc1, - 0xe2, 0xb9, 0x6c, 0xdf, 0x50, 0x03, 0xe7, 0x49, 0x7c, 0x49, 0x30, 0x6e, 0x0f, 0x22, 0x7d, 0x1e, - 0x51, 0xb0, 0x64, 0x99, 0x84, 0xa8, 0x5c, 0xc6, 0x42, 0xb7, 0x08, 0x91, 0x98, 0xf5, 0x8f, 0x95, - 0xfc, 0xaa, 0x00, 0xc8, 0x12, 0xc9, 0xa5, 0x6f, 0xd5, 0x2f, 0x85, 0x01, 0xc3, 0x8c, 0xef, 0xa5, - 0x30, 0x75, 0x88, 0x1f, 0xcd, 0x85, 0x4f, 0x28, 0x78, 0x73, 0x23, 0x47, 0x14, 0x4f, 0xf6, 0x45, - 0xcf, 0x02, 0x55, 0xc8, 0x12, 0xea, 0xdd, 0x07, 0x76, 0xa6, 0x31, 0xc2, 0x61, 0xbf, 0xd1, 0x1f, - 0xfb, 0xf9, 0x74, 0x00, 0xca, 0x33, 0x57, 0x61, 0xc6, 0x11, 0x08, 0xa6, 0x83, 0x08, 0xcb, 0x3d, - 0xe1, 0x06, 0x50, 0xe9, 0x3f, 0x80, 0x17, 0xd2, 0x8b, 0xfe, 0x03, 0xb0, 0x5b, 0x54, 0x3c, 0x98, - 0xca, 0xd7, 0xee, 0x60, 0xac, 0x56, 0xf4, 0x67, 0x04, 0x40, 0x96, 0x25, 0xda, 0xfe, 0x06, 0xd2, - 0xef, 0x10, 0xc2, 0x8c, 0x19, 0xe5, 0xa1, 0x90, 0xb9, 0x2d, 0xc2, 0xb3, 0x99, 0x20, 0xb2, 0xfb, - 0x2b, 0x02, 0xa4, 0xcd, 0x38, 0x27, 0x77, 0x33, 0x4d, 0xff, 0x60, 0xe7, 0xcb, 0x61, 0x06, 0xc1, - 0x47, 0x3c, 0x0b, 0x24, 0xd6, 0x33, 0x67, 0x45, 0x6d, 0x8f, 0x7b, 0x2e, 0xa0, 0x53, 0x26, 0x74, - 0x86, 0xd6, 0x1a, 0xfe, 0x7c, 0x14, 0x81, 0x39, 0xa7, 0x45, 0xd0, 0x63, 0xa0, 0x6f, 0x84, 0x47, - 0x67, 0xb5, 0x0e, 0x6f, 0xee, 0xbf, 0x01, 0x66, 0x23, 0xee, 0x06, 0x19, 0xe7, 0x07, 0xc4, 0x57, - 0x7c, 0xa6, 0x48, 0x7f, 0x73, 0xde, 0x35, 0x34, 0xfa, 0x17, 0x02, 0x4c, 0x9b, 0xe1, 0x15, 0x0e, - 0x0b, 0xba, 0x16, 0x1e, 0x7f, 0x4e, 0x96, 0xd3, 0x4b, 0xe1, 0xab, 0x89, 0x1f, 0x79, 0xf4, 0x38, - 0x75, 0x02, 0xd2, 0xae, 0x03, 0x35, 0x05, 0xe8, 0x9a, 0x78, 0x25, 0xec, 0x48, 0x99, 0xab, 0x93, - 0xb2, 0x84, 0x67, 0xf8, 0x41, 0xbe, 0x12, 0x1e, 0x2d, 0x0b, 0xd6, 0xec, 0x67, 0x9c, 0x4a, 0xa0, - 0x71, 0xbe, 0x91, 0x7e, 0x35, 0xf4, 0x8c, 0x5a, 0x02, 0xae, 0x7f, 0x24, 0x40, 0xca, 0xa9, 0x34, - 0xf6, 0x3f, 0x62, 0x9f, 0x28, 0x4f, 0x9d, 0xc4, 0x12, 0xe6, 0x5d, 0x47, 0xc5, 0xe9, 0x92, 0xd7, - 0x33, 0x07, 0x18, 0x16, 0xfa, 0x35, 0x01, 0x92, 0xe6, 0xc1, 0x5e, 0xe6, 0xbb, 0xbd, 0x14, 0xf2, - 0x41, 0xfd, 0xc0, 0x87, 0x11, 0x1c, 0xf5, 0xb8, 0x9d, 0xac, 0x09, 0x18, 0xa7, 0xf7, 0x01, 0x58, - 0xdd, 0x1c, 0xf3, 0xfb, 0x55, 0xa7, 0x5f, 0xf6, 0x8f, 0x04, 0x7a, 0x63, 0xaf, 0xe9, 0x94, 0x3d, - 0x1f, 0x18, 0x41, 0xd0, 0xaf, 0xa0, 0x4c, 0x77, 0xec, 0xba, 0x37, 0xc8, 0x53, 0xe8, 0x84, 0xe3, - 0xa4, 0x31, 0xaf, 0xc9, 0xbf, 0x20, 0xc0, 0xb8, 0xf9, 0xa1, 0x3f, 0xb5, 0x35, 0xd9, 0xc0, 0xbd, - 0x33, 0xff, 0xeb, 0x62, 0xe0, 0x0a, 0xd6, 0xfb, 0x15, 0x6c, 0xf6, 0xf2, 0x84, 0x38, 0xeb, 0x81, - 0x15, 0x93, 0xf4, 0x9f, 0x08, 0x30, 0x6e, 0x7e, 0xb6, 0x12, 0x16, 0x29, 0xf3, 0xb6, 0x42, 0x20, - 0xfd, 0x40, 0x1f, 0xa4, 0x67, 0xd2, 0x7d, 0xa9, 0xca, 0x3c, 0xf3, 0x49, 0xeb, 0xd5, 0x06, 0x14, - 0x72, 0x28, 0x3e, 0x08, 0x01, 0xb7, 0xd8, 0x07, 0xee, 0xe5, 0xf4, 0x85, 0x7e, 0x70, 0xed, 0xfe, - 0xd4, 0x97, 0xc8, 0xf6, 0xcd, 0xd7, 0x08, 0x74, 0xab, 0xf7, 0xf4, 0x29, 0x81, 0xff, 0x82, 0x6e, - 0x1f, 0xb0, 0xfb, 0x7d, 0x43, 0x31, 0x09, 0x13, 0x1c, 0x46, 0x4e, 0xd1, 0x9d, 0xca, 0xf4, 0x17, - 0xb2, 0x1f, 0x13, 0x60, 0x72, 0x79, 0xb7, 0x71, 0xcf, 0x8e, 0xec, 0x85, 0xc0, 0xc8, 0x68, 0xcd, - 0xbe, 0xfb, 0x1a, 0x2f, 0xf6, 0x43, 0x38, 0x9b, 0x41, 0x14, 0xa1, 0xae, 0xaa, 0xf4, 0xad, 0x8c, - 0x4f, 0x08, 0xe4, 0xa6, 0x28, 0xa2, 0xa2, 0xce, 0x05, 0x78, 0xd4, 0x2c, 0xc8, 0xd9, 0x0a, 0xf6, - 0xea, 0x2e, 0x39, 0xd9, 0x33, 0x06, 0x23, 0xed, 0xee, 0xf6, 0xa2, 0x2a, 0x77, 0x5c, 0x0e, 0xf4, - 0x37, 0x95, 0xac, 0xfe, 0xd1, 0xd1, 0xbb, 0xe8, 0x27, 0x8d, 0x93, 0x3d, 0xec, 0x65, 0x56, 0x7f, - 0xf2, 0xb8, 0xbc, 0x35, 0x1e, 0xe0, 0x7e, 0x1e, 0xb9, 0x43, 0x4e, 0xce, 0x8c, 0xc3, 0xa8, 0x8e, - 0xcc, 0x64, 0xb7, 0x59, 0xd1, 0x06, 0x4d, 0x8f, 0xad, 0x7e, 0xca, 0xd0, 0x3e, 0xe6, 0x43, 0xf1, - 0x17, 0x03, 0x74, 0xc5, 0xf4, 0xce, 0x01, 0x51, 0xa5, 0x5d, 0x08, 0xc6, 0xf6, 0x73, 0x38, 0x25, - 0x63, 0x22, 0x0b, 0x38, 0x93, 0x81, 0x50, 0xbd, 0xee, 0x85, 0xea, 0xd9, 0xf4, 0x29, 0x27, 0x2a, - 0xbb, 0x2e, 0xf9, 0x69, 0x8b, 0x2e, 0x39, 0x1e, 0x08, 0xad, 0x2a, 0xe3, 0xdb, 0x74, 0x8d, 0x11, - 0x1a, 0x9c, 0x97, 0x24, 0x5e, 0xf6, 0xc2, 0x33, 0x95, 0x71, 0x63, 0xfc, 0x5f, 0x13, 0x60, 0x92, - 0xb2, 0x89, 0x85, 0x9f, 0x43, 0xb2, 0x3f, 0x63, 0xb4, 0xcb, 0xa1, 0x2a, 0x91, 0xfd, 0x3a, 0x57, - 0xa8, 0xcf, 0xa5, 0xcf, 0x38, 0xa0, 0x76, 0x5c, 0xc2, 0x8a, 0x9f, 0x17, 0x00, 0xa8, 0xcb, 0x54, - 0x94, 0x3b, 0x9a, 0x7f, 0xc4, 0xd4, 0xfe, 0x94, 0x70, 0xfa, 0x6a, 0x88, 0x1a, 0xdc, 0x7d, 0x39, - 0x6e, 0x7a, 0x05, 0x3b, 0x64, 0x16, 0xcc, 0x9c, 0x43, 0xf6, 0x7d, 0xf4, 0xcb, 0x61, 0xfe, 0x0d, - 0x5e, 0xaf, 0x55, 0x6a, 0x36, 0xd0, 0xbd, 0x52, 0xdc, 0xa1, 0xef, 0x2b, 0xf4, 0x5e, 0x18, 0x7a, - 0xa6, 0xdb, 0x7a, 0x0e, 0x47, 0x87, 0x43, 0xf2, 0x54, 0x45, 0xcb, 0x92, 0xfb, 0xa2, 0xd0, 0xa7, - 0xe9, 0x39, 0xa1, 0x3c, 0x7d, 0x77, 0xe4, 0x50, 0x40, 0x5d, 0x73, 0x07, 0x85, 0xfd, 0x41, 0x02, - 0x8a, 0xbd, 0x79, 0x62, 0x47, 0xf6, 0x73, 0x02, 0x4c, 0x50, 0x4d, 0xca, 0xa3, 0x5a, 0x0a, 0xd1, - 0x7b, 0xe0, 0x6f, 0x98, 0xb9, 0x3a, 0xc4, 0x78, 0x8d, 0xc1, 0x08, 0x43, 0x6b, 0x75, 0x09, 0xdd, - 0x69, 0x68, 0xfd, 0x92, 0xf9, 0x78, 0x80, 0x4d, 0xf7, 0x03, 0xfb, 0x40, 0xdf, 0x1d, 0x09, 0x32, - 0xdd, 0x5e, 0xaa, 0x65, 0x89, 0xca, 0x2b, 0xeb, 0x9a, 0x33, 0xf0, 0x73, 0x19, 0x4f, 0x66, 0xfb, - 0x33, 0x1a, 0xac, 0xe1, 0xba, 0xe5, 0xae, 0x74, 0x0c, 0xb0, 0xb5, 0xee, 0xf5, 0x7a, 0xa8, 0xff, - 0xd6, 0xba, 0xe7, 0x03, 0xad, 0xe2, 0x4d, 0x77, 0xee, 0xbc, 0x2a, 0x5e, 0xf2, 0x18, 0x05, 0x16, - 0x68, 0xfd, 0xa1, 0x60, 0x8b, 0x60, 0xff, 0x33, 0x01, 0xe6, 0x73, 0xb2, 0xcc, 0xdf, 0x52, 0xd9, - 0xe6, 0x29, 0xbc, 0x18, 0x02, 0x64, 0xa0, 0xb3, 0x2e, 0x5c, 0x79, 0x12, 0x4a, 0x76, 0xe3, 0x84, - 0x8b, 0xe2, 0xd9, 0x20, 0xe3, 0xc0, 0xf8, 0x7f, 0x55, 0x80, 0x05, 0xc3, 0xfe, 0xe8, 0x0d, 0xdf, - 0xe8, 0xb6, 0x9b, 0xfc, 0x20, 0x2e, 0x87, 0x00, 0xd5, 0xc7, 0x30, 0x6d, 0x78, 0xc0, 0x7d, 0x29, - 0xf3, 0x62, 0x20, 0xb2, 0xdb, 0x3e, 0x0e, 0x47, 0x5f, 0x14, 0x60, 0xde, 0xca, 0x59, 0x96, 0xd7, - 0x2b, 0x3d, 0xb9, 0xfb, 0x85, 0x30, 0xef, 0x49, 0xb2, 0xe7, 0x22, 0xc9, 0xf6, 0xff, 0x04, 0x8c, - 0xab, 0x52, 0x73, 0xd1, 0xce, 0x36, 0x59, 0x74, 0xd9, 0x0b, 0x3f, 0x7d, 0x87, 0x92, 0xbd, 0x30, - 0xa9, 0xf3, 0x0d, 0xfa, 0x2d, 0x01, 0x4e, 0xe4, 0x64, 0xd9, 0x72, 0x2b, 0xa8, 0x85, 0x6b, 0x2e, - 0x85, 0x41, 0x98, 0x0e, 0x55, 0x9a, 0xc4, 0xf0, 0x11, 0x79, 0x36, 0x69, 0xd1, 0x31, 0x13, 0x19, - 0xf1, 0x5c, 0xa0, 0x91, 0xb0, 0x4d, 0x88, 0x33, 0x94, 0x73, 0xf8, 0xe6, 0xed, 0xac, 0x13, 0x6e, - 0x24, 0xfd, 0xb6, 0x5f, 0xbd, 0x30, 0xbf, 0x9c, 0xb9, 0x16, 0x8c, 0xfa, 0x0f, 0x2d, 0x6f, 0x8b, - 0xbe, 0x8b, 0x7e, 0xd9, 0xa1, 0x98, 0xf8, 0xaf, 0xff, 0xf7, 0x7f, 0x64, 0xd6, 0xf9, 0xd6, 0x28, - 0x59, 0x62, 0x7a, 0x30, 0xcf, 0x22, 0xf2, 0xd4, 0x39, 0xe4, 0xd1, 0x4f, 0x3b, 0xef, 0xfc, 0x06, - 0x55, 0x38, 0xfc, 0x3d, 0xaf, 0x16, 0xd6, 0x79, 0x3e, 0x04, 0xbc, 0x74, 0x98, 0xc2, 0x24, 0x0a, - 0xee, 0x35, 0x09, 0x7d, 0x34, 0x0e, 0x3f, 0x0a, 0xcc, 0x37, 0xbf, 0x66, 0x68, 0x1c, 0xae, 0x71, - 0x3b, 0xdb, 0x84, 0x1a, 0x85, 0x17, 0xd7, 0xbc, 0xd5, 0x07, 0xf0, 0xb5, 0xcc, 0x0b, 0x81, 0xc8, - 0xfe, 0x90, 0x7f, 0xbe, 0x95, 0xf0, 0x0c, 0x56, 0x39, 0x9e, 0xcf, 0xaf, 0x7a, 0x31, 0xcd, 0xeb, - 0x41, 0x2f, 0x53, 0x70, 0x7b, 0xa7, 0x53, 0xfc, 0xa0, 0xbb, 0xb9, 0x3a, 0x8f, 0x5c, 0xa4, 0xd5, - 0xb8, 0x48, 0xa1, 0x6e, 0xb4, 0x84, 0x7e, 0x53, 0x00, 0xd1, 0xf4, 0xf7, 0x8e, 0x18, 0xfc, 0x8a, - 0x3b, 0xf8, 0x4b, 0x28, 0xe3, 0xe1, 0x09, 0xba, 0x8d, 0xe0, 0x2f, 0x04, 0x38, 0xc5, 0x76, 0x6b, - 0xbd, 0xd0, 0xbf, 0xb1, 0x5f, 0x94, 0x81, 0xef, 0xc2, 0xf3, 0x6a, 0x80, 0xec, 0x47, 0xbb, 0x19, - 0x36, 0x57, 0x75, 0xea, 0x32, 0x3c, 0xb6, 0x2f, 0x72, 0x8a, 0xed, 0xe9, 0x7e, 0x2d, 0x8d, 0x30, - 0x1d, 0x7c, 0x84, 0x9f, 0x14, 0xe0, 0x14, 0xdb, 0x25, 0x08, 0xcb, 0x81, 0xfd, 0xae, 0x74, 0x72, - 0xf5, 0x47, 0xcf, 0x67, 0x02, 0x8a, 0xc6, 0x67, 0xe9, 0xd5, 0x0a, 0xce, 0xa7, 0x5a, 0xbd, 0xa0, - 0x5c, 0x0b, 0x4a, 0x43, 0xcb, 0x8b, 0xa4, 0xe4, 0xba, 0x44, 0x17, 0x29, 0x58, 0x40, 0xa7, 0xfa, - 0xe0, 0x94, 0xb6, 0xc9, 0x45, 0x7f, 0xf3, 0x4e, 0xd9, 0x3d, 0x34, 0x9c, 0xaf, 0xbb, 0xe3, 0x3c, - 0x87, 0x9e, 0xf5, 0x93, 0x56, 0x0c, 0xf6, 0xb7, 0x05, 0x98, 0xb5, 0x8a, 0xa9, 0x09, 0xf4, 0x95, - 0xd0, 0x80, 0x02, 0xaf, 0xd1, 0x1d, 0x35, 0x49, 0xbc, 0xd4, 0x8d, 0x5f, 0x9f, 0x15, 0x7d, 0xe8, - 0x8d, 0x19, 0x15, 0x8f, 0xc2, 0x2a, 0x8a, 0xc7, 0x6d, 0x14, 0xe9, 0x00, 0xa3, 0xf8, 0x4e, 0x01, - 0x66, 0xad, 0xe2, 0xe6, 0xcf, 0x34, 0xfd, 0x3e, 0xeb, 0x75, 0x95, 0xb3, 0x85, 0x4c, 0x00, 0xfe, - 0x4d, 0x71, 0x02, 0x66, 0x7d, 0x8d, 0xd6, 0x0b, 0xc7, 0xf5, 0xa0, 0xb4, 0x72, 0x3c, 0xaf, 0x4a, - 0x68, 0xe6, 0xc2, 0xc0, 0x67, 0x91, 0xd8, 0x07, 0x28, 0x7b, 0x4e, 0x15, 0xaf, 0x28, 0x4e, 0x3b, - 0x85, 0xed, 0xd0, 0x31, 0xbf, 0xe9, 0x8e, 0xf9, 0x22, 0x3a, 0xef, 0x27, 0x74, 0x3a, 0xf0, 0x2f, - 0x0b, 0x30, 0x6f, 0x15, 0x3c, 0x2b, 0xe8, 0xd7, 0xf7, 0x05, 0x2e, 0xf8, 0x27, 0xbf, 0x6e, 0xb5, - 0x49, 0x74, 0xcf, 0x8d, 0x7d, 0xcf, 0x8b, 0x01, 0xe6, 0x02, 0xb3, 0xf0, 0x97, 0x8d, 0x03, 0x92, - 0x5f, 0x0b, 0xa3, 0x4a, 0x07, 0x1c, 0xd5, 0xf7, 0x93, 0x7b, 0x0e, 0x79, 0xc1, 0x0c, 0xc6, 0x60, - 0x5e, 0xc2, 0xf9, 0x01, 0x2f, 0xe1, 0x3c, 0x9b, 0x09, 0x80, 0x68, 0xf9, 0x9f, 0x0b, 0x9f, 0xcc, - 0xfd, 0x88, 0x80, 0x56, 0x61, 0xcc, 0x7c, 0xe3, 0x61, 0x21, 0x57, 0x2e, 0x8a, 0x57, 0xd0, 0xe2, - 0x4e, 0xaf, 0xd7, 0xd1, 0x5e, 0xcd, 0x66, 0xb7, 0xd5, 0xde, 0xce, 0xee, 0xdd, 0xc5, 0x7a, 0xbb, - 0x99, 0xc5, 0x34, 0x33, 0x1e, 0x2d, 0xe8, 0xdc, 0xdb, 0xce, 0x9a, 0x74, 0x5b, 0x8a, 0x5e, 0x59, - 0xbc, 0x9a, 0x11, 0x22, 0x4b, 0x49, 0xee, 0xbc, 0x64, 0xf6, 0x5b, 0xb4, 0x76, 0xcb, 0x9a, 0xb2, - 0xdd, 0xed, 0xd4, 0x5f, 0x75, 0x94, 0x79, 0xd5, 0x51, 0xe6, 0xc3, 0xcf, 0xf7, 0xeb, 0x17, 0x97, - 0xe0, 0x3a, 0xbf, 0x1b, 0x23, 0x64, 0x79, 0xe1, 0xff, 0x07, 0x00, 0x00, 0xff, 0xff, 0x54, 0xe6, - 0x02, 0x53, 0x20, 0x15, 0x01, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// ManagementServiceClient is the client API for ManagementService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ManagementServiceClient interface { - //READINESS - Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) - GetZitadelDocs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ZitadelDocs, error) - // GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID) - GetIam(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Iam, error) - IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) - GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserView, error) - // GetUserByLoginNameGlobal returns User, global search is overall organisations - GetUserByLoginNameGlobal(ctx context.Context, in *LoginName, opts ...grpc.CallOption) (*UserView, error) - // Limit should always be set, there is a default limit set by the service - SearchUsers(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error) - CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserResponse, error) - DeactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) - ReactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) - LockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) - UnlockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) - DeleteUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - // UserChanges returns the event stream of the user object - UserChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - AddMachineKey(ctx context.Context, in *AddMachineKeyRequest, opts ...grpc.CallOption) (*AddMachineKeyResponse, error) - DeleteMachineKey(ctx context.Context, in *MachineKeyIDRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SearchMachineKeys(ctx context.Context, in *MachineKeySearchRequest, opts ...grpc.CallOption) (*MachineKeySearchResponse, error) - GetMachineKey(ctx context.Context, in *MachineKeyIDRequest, opts ...grpc.CallOption) (*MachineKeyView, error) - GetUserProfile(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserProfileView, error) - UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) - GetUserEmail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserEmailView, error) - ChangeUserUserName(ctx context.Context, in *UpdateUserUserNameRequest, opts ...grpc.CallOption) (*empty.Empty, error) - ChangeUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) - ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - GetUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserPhoneView, error) - ChangeUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) - RemoveUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - ResendPhoneVerificationCode(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) - GetUserAddress(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserAddressView, error) - UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) - UpdateUserMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*MachineResponse, error) - SearchUserExternalIDPs(ctx context.Context, in *ExternalIDPSearchRequest, opts ...grpc.CallOption) (*ExternalIDPSearchResponse, error) - RemoveExternalIDP(ctx context.Context, in *ExternalIDPRemoveRequest, opts ...grpc.CallOption) (*empty.Empty, error) - GetUserMfas(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserMultiFactors, error) - // Sends an Notification (Email/SMS) with a password reset Link - SendSetPasswordNotification(ctx context.Context, in *SetPasswordNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) - // A Manager is only allowed to set an initial password, on the next login the user has to change his password - SetInitialPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) - ResendInitialMail(ctx context.Context, in *InitialMailRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SearchUserMemberships(ctx context.Context, in *UserMembershipSearchRequest, opts ...grpc.CallOption) (*UserMembershipSearchResponse, error) - CreateOrg(ctx context.Context, in *OrgCreateRequest, opts ...grpc.CallOption) (*Org, error) - // OrgChanges returns the event stream of the org object - OrgChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - GetMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgView, error) - // search a organisation by its domain overall organisations - GetOrgByDomainGlobal(ctx context.Context, in *Domain, opts ...grpc.CallOption) (*OrgView, error) - DeactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) - ReactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) - SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest, opts ...grpc.CallOption) (*OrgDomainSearchResponse, error) - AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest, opts ...grpc.CallOption) (*OrgDomain, error) - GenerateMyOrgDomainValidation(ctx context.Context, in *OrgDomainValidationRequest, opts ...grpc.CallOption) (*OrgDomainValidationResponse, error) - ValidateMyOrgDomain(ctx context.Context, in *ValidateOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SetMyPrimaryOrgDomain(ctx context.Context, in *PrimaryOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) - RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) - GetMyOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicyView, error) - GetOrgMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgMemberRoles, error) - AddMyOrgMember(ctx context.Context, in *AddOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) - ChangeMyOrgMember(ctx context.Context, in *ChangeOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) - RemoveMyOrgMember(ctx context.Context, in *RemoveOrgMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) - SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest, opts ...grpc.CallOption) (*OrgMemberSearchResponse, error) - // ProjectChanges returns the event stream of the project object - ProjectChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - SearchProjects(ctx context.Context, in *ProjectSearchRequest, opts ...grpc.CallOption) (*ProjectSearchResponse, error) - ProjectByID(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectView, error) - CreateProject(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*Project, error) - UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) - DeactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) - ReactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) - RemoveProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*empty.Empty, error) - // returns all projects my organisation got granted from another organisation - SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) - // returns a project my organisation got granted from another organisation - GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) - GetProjectMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectMemberRoles, error) - SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest, opts ...grpc.CallOption) (*ProjectMemberSearchResponse, error) - AddProjectMember(ctx context.Context, in *ProjectMemberAdd, opts ...grpc.CallOption) (*ProjectMember, error) - ChangeProjectMember(ctx context.Context, in *ProjectMemberChange, opts ...grpc.CallOption) (*ProjectMember, error) - RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) - SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest, opts ...grpc.CallOption) (*ProjectRoleSearchResponse, error) - AddProjectRole(ctx context.Context, in *ProjectRoleAdd, opts ...grpc.CallOption) (*ProjectRole, error) - // add a list of project roles in one request - BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk, opts ...grpc.CallOption) (*empty.Empty, error) - ChangeProjectRole(ctx context.Context, in *ProjectRoleChange, opts ...grpc.CallOption) (*ProjectRole, error) - // RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project - RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove, opts ...grpc.CallOption) (*empty.Empty, error) - SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) - ApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ApplicationView, error) - // ApplicationChanges returns the event stream of the application object - ApplicationChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) - CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate, opts ...grpc.CallOption) (*Application, error) - UpdateApplication(ctx context.Context, in *ApplicationUpdate, opts ...grpc.CallOption) (*Application, error) - DeactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) - ReactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) - RemoveApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*empty.Empty, error) - UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate, opts ...grpc.CallOption) (*OIDCConfig, error) - RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ClientSecret, error) - SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) - ProjectGrantByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) - CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate, opts ...grpc.CallOption) (*ProjectGrant, error) - UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate, opts ...grpc.CallOption) (*ProjectGrant, error) - DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) - ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) - // RemoveProjectGrant removes project grant and all user grants for this project grant - RemoveProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*empty.Empty, error) - GetProjectGrantMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectGrantMemberRoles, error) - SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest, opts ...grpc.CallOption) (*ProjectGrantMemberSearchResponse, error) - AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd, opts ...grpc.CallOption) (*ProjectGrantMember, error) - ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange, opts ...grpc.CallOption) (*ProjectGrantMember, error) - RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) - SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) - UserGrantByID(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) - CreateUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) - UpdateUserGrant(ctx context.Context, in *UserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) - DeactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - ReactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) - RemoveUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*empty.Empty, error) - // remove a list of user grants in one request - BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk, opts ...grpc.CallOption) (*empty.Empty, error) - IdpByID(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*IdpView, error) - CreateOidcIdp(ctx context.Context, in *OidcIdpConfigCreate, opts ...grpc.CallOption) (*Idp, error) - UpdateIdpConfig(ctx context.Context, in *IdpUpdate, opts ...grpc.CallOption) (*Idp, error) - DeactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) - ReactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) - RemoveIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*empty.Empty, error) - UpdateOidcIdpConfig(ctx context.Context, in *OidcIdpConfigUpdate, opts ...grpc.CallOption) (*OidcIdpConfig, error) - SearchIdps(ctx context.Context, in *IdpSearchRequest, opts ...grpc.CallOption) (*IdpSearchResponse, error) - GetLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LoginPolicyView, error) - GetDefaultLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LoginPolicyView, error) - CreateLoginPolicy(ctx context.Context, in *LoginPolicyRequest, opts ...grpc.CallOption) (*LoginPolicy, error) - UpdateLoginPolicy(ctx context.Context, in *LoginPolicyRequest, opts ...grpc.CallOption) (*LoginPolicy, error) - RemoveLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - GetLoginPolicyIdpProviders(ctx context.Context, in *IdpProviderSearchRequest, opts ...grpc.CallOption) (*IdpProviderSearchResponse, error) - AddIdpProviderToLoginPolicy(ctx context.Context, in *IdpProviderAdd, opts ...grpc.CallOption) (*IdpProvider, error) - RemoveIdpProviderFromLoginPolicy(ctx context.Context, in *IdpProviderID, opts ...grpc.CallOption) (*empty.Empty, error) - GetLoginPolicySecondFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SecondFactorsResult, error) - AddSecondFactorToLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*SecondFactor, error) - RemoveSecondFactorFromLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*empty.Empty, error) - GetLoginPolicyMultiFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactorsResult, error) - AddMultiFactorToLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*MultiFactor, error) - RemoveMultiFactorFromLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*empty.Empty, error) - GetPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicyView, error) - GetDefaultPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicyView, error) - CreatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyRequest, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) - UpdatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyRequest, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) - RemovePasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - GetPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicyView, error) - GetDefaultPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicyView, error) - CreatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyRequest, opts ...grpc.CallOption) (*PasswordAgePolicy, error) - UpdatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyRequest, opts ...grpc.CallOption) (*PasswordAgePolicy, error) - RemovePasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) - GetPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicyView, error) - GetDefaultPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicyView, error) - CreatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyRequest, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) - UpdatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyRequest, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) - RemovePasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) -} - -type managementServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewManagementServiceClient(cc grpc.ClientConnInterface) ManagementServiceClient { - return &managementServiceClient{cc} -} - -func (c *managementServiceClient) Healthz(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Healthz", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Ready", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) Validate(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*_struct.Struct, error) { - out := new(_struct.Struct) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/Validate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetZitadelDocs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ZitadelDocs, error) { - out := new(ZitadelDocs) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetZitadelDocs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetIam(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Iam, error) { - out := new(Iam) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetIam", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) IsUserUnique(ctx context.Context, in *UniqueUserRequest, opts ...grpc.CallOption) (*UniqueUserResponse, error) { - out := new(UniqueUserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserByID(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserView, error) { - out := new(UserView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserByLoginNameGlobal(ctx context.Context, in *LoginName, opts ...grpc.CallOption) (*UserView, error) { - out := new(UserView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserByLoginNameGlobal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchUsers(ctx context.Context, in *UserSearchRequest, opts ...grpc.CallOption) (*UserSearchResponse, error) { - out := new(UserSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUsers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*UserResponse, error) { - out := new(UserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) { - out := new(UserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) { - out := new(UserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) LockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) { - out := new(UserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/LockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UnlockUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserResponse, error) { - out := new(UserResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UnlockUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeleteUser(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeleteUser", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UserChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UserChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddMachineKey(ctx context.Context, in *AddMachineKeyRequest, opts ...grpc.CallOption) (*AddMachineKeyResponse, error) { - out := new(AddMachineKeyResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMachineKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeleteMachineKey(ctx context.Context, in *MachineKeyIDRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeleteMachineKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchMachineKeys(ctx context.Context, in *MachineKeySearchRequest, opts ...grpc.CallOption) (*MachineKeySearchResponse, error) { - out := new(MachineKeySearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMachineKeys", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetMachineKey(ctx context.Context, in *MachineKeyIDRequest, opts ...grpc.CallOption) (*MachineKeyView, error) { - out := new(MachineKeyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMachineKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserProfile(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserProfileView, error) { - out := new(UserProfileView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserProfile(ctx context.Context, in *UpdateUserProfileRequest, opts ...grpc.CallOption) (*UserProfile, error) { - out := new(UserProfile) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserEmail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserEmailView, error) { - out := new(UserEmailView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeUserUserName(ctx context.Context, in *UpdateUserUserNameRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserUserName", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeUserEmail(ctx context.Context, in *UpdateUserEmailRequest, opts ...grpc.CallOption) (*UserEmail, error) { - out := new(UserEmail) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ResendEmailVerificationMail(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserPhoneView, error) { - out := new(UserPhoneView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeUserPhone(ctx context.Context, in *UpdateUserPhoneRequest, opts ...grpc.CallOption) (*UserPhone, error) { - out := new(UserPhone) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveUserPhone(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ResendPhoneVerificationCode(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserAddress(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserAddressView, error) { - out := new(UserAddressView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserAddress(ctx context.Context, in *UpdateUserAddressRequest, opts ...grpc.CallOption) (*UserAddress, error) { - out := new(UserAddress) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserMachine(ctx context.Context, in *UpdateMachineRequest, opts ...grpc.CallOption) (*MachineResponse, error) { - out := new(MachineResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserMachine", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchUserExternalIDPs(ctx context.Context, in *ExternalIDPSearchRequest, opts ...grpc.CallOption) (*ExternalIDPSearchResponse, error) { - out := new(ExternalIDPSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUserExternalIDPs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveExternalIDP(ctx context.Context, in *ExternalIDPRemoveRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveExternalIDP", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetUserMfas(ctx context.Context, in *UserID, opts ...grpc.CallOption) (*UserMultiFactors, error) { - out := new(UserMultiFactors) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SendSetPasswordNotification(ctx context.Context, in *SetPasswordNotificationRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SetInitialPassword(ctx context.Context, in *PasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ResendInitialMail(ctx context.Context, in *InitialMailRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ResendInitialMail", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchUserMemberships(ctx context.Context, in *UserMembershipSearchRequest, opts ...grpc.CallOption) (*UserMembershipSearchResponse, error) { - out := new(UserMembershipSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUserMemberships", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateOrg(ctx context.Context, in *OrgCreateRequest, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) OrgChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/OrgChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgView, error) { - out := new(OrgView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetOrgByDomainGlobal(ctx context.Context, in *Domain, opts ...grpc.CallOption) (*OrgView, error) { - out := new(OrgView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateMyOrg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Org, error) { - out := new(Org) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchMyOrgDomains(ctx context.Context, in *OrgDomainSearchRequest, opts ...grpc.CallOption) (*OrgDomainSearchResponse, error) { - out := new(OrgDomainSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddMyOrgDomain(ctx context.Context, in *AddOrgDomainRequest, opts ...grpc.CallOption) (*OrgDomain, error) { - out := new(OrgDomain) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GenerateMyOrgDomainValidation(ctx context.Context, in *OrgDomainValidationRequest, opts ...grpc.CallOption) (*OrgDomainValidationResponse, error) { - out := new(OrgDomainValidationResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GenerateMyOrgDomainValidation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ValidateMyOrgDomain(ctx context.Context, in *ValidateOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ValidateMyOrgDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SetMyPrimaryOrgDomain(ctx context.Context, in *PrimaryOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SetMyPrimaryOrgDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveMyOrgDomain(ctx context.Context, in *RemoveOrgDomainRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetMyOrgIamPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgIamPolicyView, error) { - out := new(OrgIamPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetOrgMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*OrgMemberRoles, error) { - out := new(OrgMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddMyOrgMember(ctx context.Context, in *AddOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) { - out := new(OrgMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeMyOrgMember(ctx context.Context, in *ChangeOrgMemberRequest, opts ...grpc.CallOption) (*OrgMember, error) { - out := new(OrgMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveMyOrgMember(ctx context.Context, in *RemoveOrgMemberRequest, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchMyOrgMembers(ctx context.Context, in *OrgMemberSearchRequest, opts ...grpc.CallOption) (*OrgMemberSearchResponse, error) { - out := new(OrgMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjects(ctx context.Context, in *ProjectSearchRequest, opts ...grpc.CallOption) (*ProjectSearchResponse, error) { - out := new(ProjectSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectByID(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectView, error) { - out := new(ProjectView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateProject(ctx context.Context, in *ProjectCreateRequest, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateProject(ctx context.Context, in *ProjectUpdateRequest, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*Project, error) { - out := new(Project) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProject(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchGrantedProjects(ctx context.Context, in *GrantedProjectSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) { - out := new(ProjectGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetGrantedProjectByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) { - out := new(ProjectGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetProjectMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectMemberRoles, error) { - out := new(ProjectMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectMembers(ctx context.Context, in *ProjectMemberSearchRequest, opts ...grpc.CallOption) (*ProjectMemberSearchResponse, error) { - out := new(ProjectMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddProjectMember(ctx context.Context, in *ProjectMemberAdd, opts ...grpc.CallOption) (*ProjectMember, error) { - out := new(ProjectMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeProjectMember(ctx context.Context, in *ProjectMemberChange, opts ...grpc.CallOption) (*ProjectMember, error) { - out := new(ProjectMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectMember(ctx context.Context, in *ProjectMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectRoles(ctx context.Context, in *ProjectRoleSearchRequest, opts ...grpc.CallOption) (*ProjectRoleSearchResponse, error) { - out := new(ProjectRoleSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddProjectRole(ctx context.Context, in *ProjectRoleAdd, opts ...grpc.CallOption) (*ProjectRole, error) { - out := new(ProjectRole) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) BulkAddProjectRole(ctx context.Context, in *ProjectRoleAddBulk, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeProjectRole(ctx context.Context, in *ProjectRoleChange, opts ...grpc.CallOption) (*ProjectRole, error) { - out := new(ProjectRole) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectRole(ctx context.Context, in *ProjectRoleRemove, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchApplications(ctx context.Context, in *ApplicationSearchRequest, opts ...grpc.CallOption) (*ApplicationSearchResponse, error) { - out := new(ApplicationSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchApplications", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ApplicationByID(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ApplicationView, error) { - out := new(ApplicationView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ApplicationChanges(ctx context.Context, in *ChangeRequest, opts ...grpc.CallOption) (*Changes, error) { - out := new(Changes) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateOIDCApplication(ctx context.Context, in *OIDCApplicationCreate, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateApplication(ctx context.Context, in *ApplicationUpdate, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*Application, error) { - out := new(Application) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveApplication(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateApplicationOIDCConfig(ctx context.Context, in *OIDCConfigUpdate, opts ...grpc.CallOption) (*OIDCConfig, error) { - out := new(OIDCConfig) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RegenerateOIDCClientSecret(ctx context.Context, in *ApplicationID, opts ...grpc.CallOption) (*ClientSecret, error) { - out := new(ClientSecret) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectGrants(ctx context.Context, in *ProjectGrantSearchRequest, opts ...grpc.CallOption) (*ProjectGrantSearchResponse, error) { - out := new(ProjectGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ProjectGrantByID(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrantView, error) { - out := new(ProjectGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateProjectGrant(ctx context.Context, in *ProjectGrantCreate, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateProjectGrant(ctx context.Context, in *ProjectGrantUpdate, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*ProjectGrant, error) { - out := new(ProjectGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectGrant(ctx context.Context, in *ProjectGrantID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetProjectGrantMemberRoles(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProjectGrantMemberRoles, error) { - out := new(ProjectGrantMemberRoles) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchProjectGrantMembers(ctx context.Context, in *ProjectGrantMemberSearchRequest, opts ...grpc.CallOption) (*ProjectGrantMemberSearchResponse, error) { - out := new(ProjectGrantMemberSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddProjectGrantMember(ctx context.Context, in *ProjectGrantMemberAdd, opts ...grpc.CallOption) (*ProjectGrantMember, error) { - out := new(ProjectGrantMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ChangeProjectGrantMember(ctx context.Context, in *ProjectGrantMemberChange, opts ...grpc.CallOption) (*ProjectGrantMember, error) { - out := new(ProjectGrantMember) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveProjectGrantMember(ctx context.Context, in *ProjectGrantMemberRemove, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchUserGrants(ctx context.Context, in *UserGrantSearchRequest, opts ...grpc.CallOption) (*UserGrantSearchResponse, error) { - out := new(UserGrantSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UserGrantByID(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrantView, error) { - out := new(UserGrantView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateUserGrant(ctx context.Context, in *UserGrantCreate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateUserGrant(ctx context.Context, in *UserGrantUpdate, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*UserGrant, error) { - out := new(UserGrant) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveUserGrant(ctx context.Context, in *UserGrantID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) BulkRemoveUserGrant(ctx context.Context, in *UserGrantRemoveBulk, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) IdpByID(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*IdpView, error) { - out := new(IdpView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/IdpByID", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateOidcIdp(ctx context.Context, in *OidcIdpConfigCreate, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateOidcIdp", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateIdpConfig(ctx context.Context, in *IdpUpdate, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) DeactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/DeactivateIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) ReactivateIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*Idp, error) { - out := new(Idp) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/ReactivateIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveIdpConfig(ctx context.Context, in *IdpID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateOidcIdpConfig(ctx context.Context, in *OidcIdpConfigUpdate, opts ...grpc.CallOption) (*OidcIdpConfig, error) { - out := new(OidcIdpConfig) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateOidcIdpConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) SearchIdps(ctx context.Context, in *IdpSearchRequest, opts ...grpc.CallOption) (*IdpSearchResponse, error) { - out := new(IdpSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/SearchIdps", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LoginPolicyView, error) { - out := new(LoginPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetDefaultLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LoginPolicyView, error) { - out := new(LoginPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetDefaultLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreateLoginPolicy(ctx context.Context, in *LoginPolicyRequest, opts ...grpc.CallOption) (*LoginPolicy, error) { - out := new(LoginPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreateLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdateLoginPolicy(ctx context.Context, in *LoginPolicyRequest, opts ...grpc.CallOption) (*LoginPolicy, error) { - out := new(LoginPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdateLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveLoginPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetLoginPolicyIdpProviders(ctx context.Context, in *IdpProviderSearchRequest, opts ...grpc.CallOption) (*IdpProviderSearchResponse, error) { - out := new(IdpProviderSearchResponse) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicyIdpProviders", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddIdpProviderToLoginPolicy(ctx context.Context, in *IdpProviderAdd, opts ...grpc.CallOption) (*IdpProvider, error) { - out := new(IdpProvider) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddIdpProviderToLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveIdpProviderFromLoginPolicy(ctx context.Context, in *IdpProviderID, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveIdpProviderFromLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetLoginPolicySecondFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SecondFactorsResult, error) { - out := new(SecondFactorsResult) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicySecondFactors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddSecondFactorToLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*SecondFactor, error) { - out := new(SecondFactor) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddSecondFactorToLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveSecondFactorFromLoginPolicy(ctx context.Context, in *SecondFactor, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveSecondFactorFromLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetLoginPolicyMultiFactors(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MultiFactorsResult, error) { - out := new(MultiFactorsResult) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicyMultiFactors", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) AddMultiFactorToLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*MultiFactor, error) { - out := new(MultiFactor) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/AddMultiFactorToLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemoveMultiFactorFromLoginPolicy(ctx context.Context, in *MultiFactor, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemoveMultiFactorFromLoginPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicyView, error) { - out := new(PasswordComplexityPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetDefaultPasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordComplexityPolicyView, error) { - out := new(PasswordComplexityPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyRequest, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { - out := new(PasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdatePasswordComplexityPolicy(ctx context.Context, in *PasswordComplexityPolicyRequest, opts ...grpc.CallOption) (*PasswordComplexityPolicy, error) { - out := new(PasswordComplexityPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemovePasswordComplexityPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordComplexityPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicyView, error) { - out := new(PasswordAgePolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetDefaultPasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordAgePolicyView, error) { - out := new(PasswordAgePolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyRequest, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { - out := new(PasswordAgePolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdatePasswordAgePolicy(ctx context.Context, in *PasswordAgePolicyRequest, opts ...grpc.CallOption) (*PasswordAgePolicy, error) { - out := new(PasswordAgePolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemovePasswordAgePolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordAgePolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicyView, error) { - out := new(PasswordLockoutPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) GetDefaultPasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PasswordLockoutPolicyView, error) { - out := new(PasswordLockoutPolicyView) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) CreatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyRequest, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { - out := new(PasswordLockoutPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) UpdatePasswordLockoutPolicy(ctx context.Context, in *PasswordLockoutPolicyRequest, opts ...grpc.CallOption) (*PasswordLockoutPolicy, error) { - out := new(PasswordLockoutPolicy) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *managementServiceClient) RemovePasswordLockoutPolicy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) { - out := new(empty.Empty) - err := c.cc.Invoke(ctx, "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordLockoutPolicy", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ManagementServiceServer is the server API for ManagementService service. -type ManagementServiceServer interface { - //READINESS - Healthz(context.Context, *empty.Empty) (*empty.Empty, error) - Ready(context.Context, *empty.Empty) (*empty.Empty, error) - Validate(context.Context, *empty.Empty) (*_struct.Struct, error) - GetZitadelDocs(context.Context, *empty.Empty) (*ZitadelDocs, error) - // GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID) - GetIam(context.Context, *empty.Empty) (*Iam, error) - IsUserUnique(context.Context, *UniqueUserRequest) (*UniqueUserResponse, error) - GetUserByID(context.Context, *UserID) (*UserView, error) - // GetUserByLoginNameGlobal returns User, global search is overall organisations - GetUserByLoginNameGlobal(context.Context, *LoginName) (*UserView, error) - // Limit should always be set, there is a default limit set by the service - SearchUsers(context.Context, *UserSearchRequest) (*UserSearchResponse, error) - CreateUser(context.Context, *CreateUserRequest) (*UserResponse, error) - DeactivateUser(context.Context, *UserID) (*UserResponse, error) - ReactivateUser(context.Context, *UserID) (*UserResponse, error) - LockUser(context.Context, *UserID) (*UserResponse, error) - UnlockUser(context.Context, *UserID) (*UserResponse, error) - DeleteUser(context.Context, *UserID) (*empty.Empty, error) - // UserChanges returns the event stream of the user object - UserChanges(context.Context, *ChangeRequest) (*Changes, error) - AddMachineKey(context.Context, *AddMachineKeyRequest) (*AddMachineKeyResponse, error) - DeleteMachineKey(context.Context, *MachineKeyIDRequest) (*empty.Empty, error) - SearchMachineKeys(context.Context, *MachineKeySearchRequest) (*MachineKeySearchResponse, error) - GetMachineKey(context.Context, *MachineKeyIDRequest) (*MachineKeyView, error) - GetUserProfile(context.Context, *UserID) (*UserProfileView, error) - UpdateUserProfile(context.Context, *UpdateUserProfileRequest) (*UserProfile, error) - GetUserEmail(context.Context, *UserID) (*UserEmailView, error) - ChangeUserUserName(context.Context, *UpdateUserUserNameRequest) (*empty.Empty, error) - ChangeUserEmail(context.Context, *UpdateUserEmailRequest) (*UserEmail, error) - ResendEmailVerificationMail(context.Context, *UserID) (*empty.Empty, error) - GetUserPhone(context.Context, *UserID) (*UserPhoneView, error) - ChangeUserPhone(context.Context, *UpdateUserPhoneRequest) (*UserPhone, error) - RemoveUserPhone(context.Context, *UserID) (*empty.Empty, error) - ResendPhoneVerificationCode(context.Context, *UserID) (*empty.Empty, error) - GetUserAddress(context.Context, *UserID) (*UserAddressView, error) - UpdateUserAddress(context.Context, *UpdateUserAddressRequest) (*UserAddress, error) - UpdateUserMachine(context.Context, *UpdateMachineRequest) (*MachineResponse, error) - SearchUserExternalIDPs(context.Context, *ExternalIDPSearchRequest) (*ExternalIDPSearchResponse, error) - RemoveExternalIDP(context.Context, *ExternalIDPRemoveRequest) (*empty.Empty, error) - GetUserMfas(context.Context, *UserID) (*UserMultiFactors, error) - // Sends an Notification (Email/SMS) with a password reset Link - SendSetPasswordNotification(context.Context, *SetPasswordNotificationRequest) (*empty.Empty, error) - // A Manager is only allowed to set an initial password, on the next login the user has to change his password - SetInitialPassword(context.Context, *PasswordRequest) (*empty.Empty, error) - ResendInitialMail(context.Context, *InitialMailRequest) (*empty.Empty, error) - SearchUserMemberships(context.Context, *UserMembershipSearchRequest) (*UserMembershipSearchResponse, error) - CreateOrg(context.Context, *OrgCreateRequest) (*Org, error) - // OrgChanges returns the event stream of the org object - OrgChanges(context.Context, *ChangeRequest) (*Changes, error) - GetMyOrg(context.Context, *empty.Empty) (*OrgView, error) - // search a organisation by its domain overall organisations - GetOrgByDomainGlobal(context.Context, *Domain) (*OrgView, error) - DeactivateMyOrg(context.Context, *empty.Empty) (*Org, error) - ReactivateMyOrg(context.Context, *empty.Empty) (*Org, error) - SearchMyOrgDomains(context.Context, *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) - AddMyOrgDomain(context.Context, *AddOrgDomainRequest) (*OrgDomain, error) - GenerateMyOrgDomainValidation(context.Context, *OrgDomainValidationRequest) (*OrgDomainValidationResponse, error) - ValidateMyOrgDomain(context.Context, *ValidateOrgDomainRequest) (*empty.Empty, error) - SetMyPrimaryOrgDomain(context.Context, *PrimaryOrgDomainRequest) (*empty.Empty, error) - RemoveMyOrgDomain(context.Context, *RemoveOrgDomainRequest) (*empty.Empty, error) - GetMyOrgIamPolicy(context.Context, *empty.Empty) (*OrgIamPolicyView, error) - GetOrgMemberRoles(context.Context, *empty.Empty) (*OrgMemberRoles, error) - AddMyOrgMember(context.Context, *AddOrgMemberRequest) (*OrgMember, error) - ChangeMyOrgMember(context.Context, *ChangeOrgMemberRequest) (*OrgMember, error) - RemoveMyOrgMember(context.Context, *RemoveOrgMemberRequest) (*empty.Empty, error) - SearchMyOrgMembers(context.Context, *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) - // ProjectChanges returns the event stream of the project object - ProjectChanges(context.Context, *ChangeRequest) (*Changes, error) - SearchProjects(context.Context, *ProjectSearchRequest) (*ProjectSearchResponse, error) - ProjectByID(context.Context, *ProjectID) (*ProjectView, error) - CreateProject(context.Context, *ProjectCreateRequest) (*Project, error) - UpdateProject(context.Context, *ProjectUpdateRequest) (*Project, error) - DeactivateProject(context.Context, *ProjectID) (*Project, error) - ReactivateProject(context.Context, *ProjectID) (*Project, error) - RemoveProject(context.Context, *ProjectID) (*empty.Empty, error) - // returns all projects my organisation got granted from another organisation - SearchGrantedProjects(context.Context, *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) - // returns a project my organisation got granted from another organisation - GetGrantedProjectByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) - GetProjectMemberRoles(context.Context, *empty.Empty) (*ProjectMemberRoles, error) - SearchProjectMembers(context.Context, *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) - AddProjectMember(context.Context, *ProjectMemberAdd) (*ProjectMember, error) - ChangeProjectMember(context.Context, *ProjectMemberChange) (*ProjectMember, error) - RemoveProjectMember(context.Context, *ProjectMemberRemove) (*empty.Empty, error) - SearchProjectRoles(context.Context, *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) - AddProjectRole(context.Context, *ProjectRoleAdd) (*ProjectRole, error) - // add a list of project roles in one request - BulkAddProjectRole(context.Context, *ProjectRoleAddBulk) (*empty.Empty, error) - ChangeProjectRole(context.Context, *ProjectRoleChange) (*ProjectRole, error) - // RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project - RemoveProjectRole(context.Context, *ProjectRoleRemove) (*empty.Empty, error) - SearchApplications(context.Context, *ApplicationSearchRequest) (*ApplicationSearchResponse, error) - ApplicationByID(context.Context, *ApplicationID) (*ApplicationView, error) - // ApplicationChanges returns the event stream of the application object - ApplicationChanges(context.Context, *ChangeRequest) (*Changes, error) - CreateOIDCApplication(context.Context, *OIDCApplicationCreate) (*Application, error) - UpdateApplication(context.Context, *ApplicationUpdate) (*Application, error) - DeactivateApplication(context.Context, *ApplicationID) (*Application, error) - ReactivateApplication(context.Context, *ApplicationID) (*Application, error) - RemoveApplication(context.Context, *ApplicationID) (*empty.Empty, error) - UpdateApplicationOIDCConfig(context.Context, *OIDCConfigUpdate) (*OIDCConfig, error) - RegenerateOIDCClientSecret(context.Context, *ApplicationID) (*ClientSecret, error) - SearchProjectGrants(context.Context, *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) - ProjectGrantByID(context.Context, *ProjectGrantID) (*ProjectGrantView, error) - CreateProjectGrant(context.Context, *ProjectGrantCreate) (*ProjectGrant, error) - UpdateProjectGrant(context.Context, *ProjectGrantUpdate) (*ProjectGrant, error) - DeactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) - ReactivateProjectGrant(context.Context, *ProjectGrantID) (*ProjectGrant, error) - // RemoveProjectGrant removes project grant and all user grants for this project grant - RemoveProjectGrant(context.Context, *ProjectGrantID) (*empty.Empty, error) - GetProjectGrantMemberRoles(context.Context, *empty.Empty) (*ProjectGrantMemberRoles, error) - SearchProjectGrantMembers(context.Context, *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) - AddProjectGrantMember(context.Context, *ProjectGrantMemberAdd) (*ProjectGrantMember, error) - ChangeProjectGrantMember(context.Context, *ProjectGrantMemberChange) (*ProjectGrantMember, error) - RemoveProjectGrantMember(context.Context, *ProjectGrantMemberRemove) (*empty.Empty, error) - SearchUserGrants(context.Context, *UserGrantSearchRequest) (*UserGrantSearchResponse, error) - UserGrantByID(context.Context, *UserGrantID) (*UserGrantView, error) - CreateUserGrant(context.Context, *UserGrantCreate) (*UserGrant, error) - UpdateUserGrant(context.Context, *UserGrantUpdate) (*UserGrant, error) - DeactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) - ReactivateUserGrant(context.Context, *UserGrantID) (*UserGrant, error) - RemoveUserGrant(context.Context, *UserGrantID) (*empty.Empty, error) - // remove a list of user grants in one request - BulkRemoveUserGrant(context.Context, *UserGrantRemoveBulk) (*empty.Empty, error) - IdpByID(context.Context, *IdpID) (*IdpView, error) - CreateOidcIdp(context.Context, *OidcIdpConfigCreate) (*Idp, error) - UpdateIdpConfig(context.Context, *IdpUpdate) (*Idp, error) - DeactivateIdpConfig(context.Context, *IdpID) (*Idp, error) - ReactivateIdpConfig(context.Context, *IdpID) (*Idp, error) - RemoveIdpConfig(context.Context, *IdpID) (*empty.Empty, error) - UpdateOidcIdpConfig(context.Context, *OidcIdpConfigUpdate) (*OidcIdpConfig, error) - SearchIdps(context.Context, *IdpSearchRequest) (*IdpSearchResponse, error) - GetLoginPolicy(context.Context, *empty.Empty) (*LoginPolicyView, error) - GetDefaultLoginPolicy(context.Context, *empty.Empty) (*LoginPolicyView, error) - CreateLoginPolicy(context.Context, *LoginPolicyRequest) (*LoginPolicy, error) - UpdateLoginPolicy(context.Context, *LoginPolicyRequest) (*LoginPolicy, error) - RemoveLoginPolicy(context.Context, *empty.Empty) (*empty.Empty, error) - GetLoginPolicyIdpProviders(context.Context, *IdpProviderSearchRequest) (*IdpProviderSearchResponse, error) - AddIdpProviderToLoginPolicy(context.Context, *IdpProviderAdd) (*IdpProvider, error) - RemoveIdpProviderFromLoginPolicy(context.Context, *IdpProviderID) (*empty.Empty, error) - GetLoginPolicySecondFactors(context.Context, *empty.Empty) (*SecondFactorsResult, error) - AddSecondFactorToLoginPolicy(context.Context, *SecondFactor) (*SecondFactor, error) - RemoveSecondFactorFromLoginPolicy(context.Context, *SecondFactor) (*empty.Empty, error) - GetLoginPolicyMultiFactors(context.Context, *empty.Empty) (*MultiFactorsResult, error) - AddMultiFactorToLoginPolicy(context.Context, *MultiFactor) (*MultiFactor, error) - RemoveMultiFactorFromLoginPolicy(context.Context, *MultiFactor) (*empty.Empty, error) - GetPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicyView, error) - GetDefaultPasswordComplexityPolicy(context.Context, *empty.Empty) (*PasswordComplexityPolicyView, error) - CreatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyRequest) (*PasswordComplexityPolicy, error) - UpdatePasswordComplexityPolicy(context.Context, *PasswordComplexityPolicyRequest) (*PasswordComplexityPolicy, error) - RemovePasswordComplexityPolicy(context.Context, *empty.Empty) (*empty.Empty, error) - GetPasswordAgePolicy(context.Context, *empty.Empty) (*PasswordAgePolicyView, error) - GetDefaultPasswordAgePolicy(context.Context, *empty.Empty) (*PasswordAgePolicyView, error) - CreatePasswordAgePolicy(context.Context, *PasswordAgePolicyRequest) (*PasswordAgePolicy, error) - UpdatePasswordAgePolicy(context.Context, *PasswordAgePolicyRequest) (*PasswordAgePolicy, error) - RemovePasswordAgePolicy(context.Context, *empty.Empty) (*empty.Empty, error) - GetPasswordLockoutPolicy(context.Context, *empty.Empty) (*PasswordLockoutPolicyView, error) - GetDefaultPasswordLockoutPolicy(context.Context, *empty.Empty) (*PasswordLockoutPolicyView, error) - CreatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyRequest) (*PasswordLockoutPolicy, error) - UpdatePasswordLockoutPolicy(context.Context, *PasswordLockoutPolicyRequest) (*PasswordLockoutPolicy, error) - RemovePasswordLockoutPolicy(context.Context, *empty.Empty) (*empty.Empty, error) -} - -// UnimplementedManagementServiceServer can be embedded to have forward compatible implementations. -type UnimplementedManagementServiceServer struct { -} - -func (*UnimplementedManagementServiceServer) Healthz(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Healthz not implemented") -} -func (*UnimplementedManagementServiceServer) Ready(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method Ready not implemented") -} -func (*UnimplementedManagementServiceServer) Validate(ctx context.Context, req *empty.Empty) (*_struct.Struct, error) { - return nil, status.Errorf(codes.Unimplemented, "method Validate not implemented") -} -func (*UnimplementedManagementServiceServer) GetZitadelDocs(ctx context.Context, req *empty.Empty) (*ZitadelDocs, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetZitadelDocs not implemented") -} -func (*UnimplementedManagementServiceServer) GetIam(ctx context.Context, req *empty.Empty) (*Iam, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetIam not implemented") -} -func (*UnimplementedManagementServiceServer) IsUserUnique(ctx context.Context, req *UniqueUserRequest) (*UniqueUserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsUserUnique not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserByID(ctx context.Context, req *UserID) (*UserView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserByID not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserByLoginNameGlobal(ctx context.Context, req *LoginName) (*UserView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserByLoginNameGlobal not implemented") -} -func (*UnimplementedManagementServiceServer) SearchUsers(ctx context.Context, req *UserSearchRequest) (*UserSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUsers not implemented") -} -func (*UnimplementedManagementServiceServer) CreateUser(ctx context.Context, req *CreateUserRequest) (*UserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUser not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateUser(ctx context.Context, req *UserID) (*UserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateUser not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateUser(ctx context.Context, req *UserID) (*UserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateUser not implemented") -} -func (*UnimplementedManagementServiceServer) LockUser(ctx context.Context, req *UserID) (*UserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method LockUser not implemented") -} -func (*UnimplementedManagementServiceServer) UnlockUser(ctx context.Context, req *UserID) (*UserResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UnlockUser not implemented") -} -func (*UnimplementedManagementServiceServer) DeleteUser(ctx context.Context, req *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteUser not implemented") -} -func (*UnimplementedManagementServiceServer) UserChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserChanges not implemented") -} -func (*UnimplementedManagementServiceServer) AddMachineKey(ctx context.Context, req *AddMachineKeyRequest) (*AddMachineKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMachineKey not implemented") -} -func (*UnimplementedManagementServiceServer) DeleteMachineKey(ctx context.Context, req *MachineKeyIDRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteMachineKey not implemented") -} -func (*UnimplementedManagementServiceServer) SearchMachineKeys(ctx context.Context, req *MachineKeySearchRequest) (*MachineKeySearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMachineKeys not implemented") -} -func (*UnimplementedManagementServiceServer) GetMachineKey(ctx context.Context, req *MachineKeyIDRequest) (*MachineKeyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMachineKey not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserProfile(ctx context.Context, req *UserID) (*UserProfileView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserProfile(ctx context.Context, req *UpdateUserProfileRequest) (*UserProfile, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserProfile not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserEmail(ctx context.Context, req *UserID) (*UserEmailView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserEmail not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeUserUserName(ctx context.Context, req *UpdateUserUserNameRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeUserUserName not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeUserEmail(ctx context.Context, req *UpdateUserEmailRequest) (*UserEmail, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeUserEmail not implemented") -} -func (*UnimplementedManagementServiceServer) ResendEmailVerificationMail(ctx context.Context, req *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendEmailVerificationMail not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserPhone(ctx context.Context, req *UserID) (*UserPhoneView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserPhone not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeUserPhone(ctx context.Context, req *UpdateUserPhoneRequest) (*UserPhone, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeUserPhone not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveUserPhone(ctx context.Context, req *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveUserPhone not implemented") -} -func (*UnimplementedManagementServiceServer) ResendPhoneVerificationCode(ctx context.Context, req *UserID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendPhoneVerificationCode not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserAddress(ctx context.Context, req *UserID) (*UserAddressView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserAddress not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserAddress(ctx context.Context, req *UpdateUserAddressRequest) (*UserAddress, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserAddress not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserMachine(ctx context.Context, req *UpdateMachineRequest) (*MachineResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMachine not implemented") -} -func (*UnimplementedManagementServiceServer) SearchUserExternalIDPs(ctx context.Context, req *ExternalIDPSearchRequest) (*ExternalIDPSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserExternalIDPs not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveExternalIDP(ctx context.Context, req *ExternalIDPRemoveRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveExternalIDP not implemented") -} -func (*UnimplementedManagementServiceServer) GetUserMfas(ctx context.Context, req *UserID) (*UserMultiFactors, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserMfas not implemented") -} -func (*UnimplementedManagementServiceServer) SendSetPasswordNotification(ctx context.Context, req *SetPasswordNotificationRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendSetPasswordNotification not implemented") -} -func (*UnimplementedManagementServiceServer) SetInitialPassword(ctx context.Context, req *PasswordRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetInitialPassword not implemented") -} -func (*UnimplementedManagementServiceServer) ResendInitialMail(ctx context.Context, req *InitialMailRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ResendInitialMail not implemented") -} -func (*UnimplementedManagementServiceServer) SearchUserMemberships(ctx context.Context, req *UserMembershipSearchRequest) (*UserMembershipSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserMemberships not implemented") -} -func (*UnimplementedManagementServiceServer) CreateOrg(ctx context.Context, req *OrgCreateRequest) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOrg not implemented") -} -func (*UnimplementedManagementServiceServer) OrgChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method OrgChanges not implemented") -} -func (*UnimplementedManagementServiceServer) GetMyOrg(ctx context.Context, req *empty.Empty) (*OrgView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyOrg not implemented") -} -func (*UnimplementedManagementServiceServer) GetOrgByDomainGlobal(ctx context.Context, req *Domain) (*OrgView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgByDomainGlobal not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateMyOrg(ctx context.Context, req *empty.Empty) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateMyOrg not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateMyOrg(ctx context.Context, req *empty.Empty) (*Org, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateMyOrg not implemented") -} -func (*UnimplementedManagementServiceServer) SearchMyOrgDomains(ctx context.Context, req *OrgDomainSearchRequest) (*OrgDomainSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyOrgDomains not implemented") -} -func (*UnimplementedManagementServiceServer) AddMyOrgDomain(ctx context.Context, req *AddOrgDomainRequest) (*OrgDomain, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMyOrgDomain not implemented") -} -func (*UnimplementedManagementServiceServer) GenerateMyOrgDomainValidation(ctx context.Context, req *OrgDomainValidationRequest) (*OrgDomainValidationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateMyOrgDomainValidation not implemented") -} -func (*UnimplementedManagementServiceServer) ValidateMyOrgDomain(ctx context.Context, req *ValidateOrgDomainRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method ValidateMyOrgDomain not implemented") -} -func (*UnimplementedManagementServiceServer) SetMyPrimaryOrgDomain(ctx context.Context, req *PrimaryOrgDomainRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetMyPrimaryOrgDomain not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveMyOrgDomain(ctx context.Context, req *RemoveOrgDomainRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMyOrgDomain not implemented") -} -func (*UnimplementedManagementServiceServer) GetMyOrgIamPolicy(ctx context.Context, req *empty.Empty) (*OrgIamPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetMyOrgIamPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetOrgMemberRoles(ctx context.Context, req *empty.Empty) (*OrgMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrgMemberRoles not implemented") -} -func (*UnimplementedManagementServiceServer) AddMyOrgMember(ctx context.Context, req *AddOrgMemberRequest) (*OrgMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMyOrgMember not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeMyOrgMember(ctx context.Context, req *ChangeOrgMemberRequest) (*OrgMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeMyOrgMember not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveMyOrgMember(ctx context.Context, req *RemoveOrgMemberRequest) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMyOrgMember not implemented") -} -func (*UnimplementedManagementServiceServer) SearchMyOrgMembers(ctx context.Context, req *OrgMemberSearchRequest) (*OrgMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchMyOrgMembers not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectChanges not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjects(ctx context.Context, req *ProjectSearchRequest) (*ProjectSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjects not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectByID(ctx context.Context, req *ProjectID) (*ProjectView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateProject(ctx context.Context, req *ProjectCreateRequest) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProject not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateProject(ctx context.Context, req *ProjectUpdateRequest) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateProject(ctx context.Context, req *ProjectID) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateProject not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateProject(ctx context.Context, req *ProjectID) (*Project, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateProject not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProject(ctx context.Context, req *ProjectID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProject not implemented") -} -func (*UnimplementedManagementServiceServer) SearchGrantedProjects(ctx context.Context, req *GrantedProjectSearchRequest) (*ProjectGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchGrantedProjects not implemented") -} -func (*UnimplementedManagementServiceServer) GetGrantedProjectByID(ctx context.Context, req *ProjectGrantID) (*ProjectGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGrantedProjectByID not implemented") -} -func (*UnimplementedManagementServiceServer) GetProjectMemberRoles(ctx context.Context, req *empty.Empty) (*ProjectMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectMemberRoles not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectMembers(ctx context.Context, req *ProjectMemberSearchRequest) (*ProjectMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectMembers not implemented") -} -func (*UnimplementedManagementServiceServer) AddProjectMember(ctx context.Context, req *ProjectMemberAdd) (*ProjectMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProjectMember not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeProjectMember(ctx context.Context, req *ProjectMemberChange) (*ProjectMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectMember not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectMember(ctx context.Context, req *ProjectMemberRemove) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectMember not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectRoles(ctx context.Context, req *ProjectRoleSearchRequest) (*ProjectRoleSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectRoles not implemented") -} -func (*UnimplementedManagementServiceServer) AddProjectRole(ctx context.Context, req *ProjectRoleAdd) (*ProjectRole, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) BulkAddProjectRole(ctx context.Context, req *ProjectRoleAddBulk) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BulkAddProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeProjectRole(ctx context.Context, req *ProjectRoleChange) (*ProjectRole, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectRole(ctx context.Context, req *ProjectRoleRemove) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectRole not implemented") -} -func (*UnimplementedManagementServiceServer) SearchApplications(ctx context.Context, req *ApplicationSearchRequest) (*ApplicationSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchApplications not implemented") -} -func (*UnimplementedManagementServiceServer) ApplicationByID(ctx context.Context, req *ApplicationID) (*ApplicationView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplicationByID not implemented") -} -func (*UnimplementedManagementServiceServer) ApplicationChanges(ctx context.Context, req *ChangeRequest) (*Changes, error) { - return nil, status.Errorf(codes.Unimplemented, "method ApplicationChanges not implemented") -} -func (*UnimplementedManagementServiceServer) CreateOIDCApplication(ctx context.Context, req *OIDCApplicationCreate) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOIDCApplication not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateApplication(ctx context.Context, req *ApplicationUpdate) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplication not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateApplication(ctx context.Context, req *ApplicationID) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateApplication not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateApplication(ctx context.Context, req *ApplicationID) (*Application, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateApplication not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveApplication(ctx context.Context, req *ApplicationID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveApplication not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateApplicationOIDCConfig(ctx context.Context, req *OIDCConfigUpdate) (*OIDCConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateApplicationOIDCConfig not implemented") -} -func (*UnimplementedManagementServiceServer) RegenerateOIDCClientSecret(ctx context.Context, req *ApplicationID) (*ClientSecret, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegenerateOIDCClientSecret not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectGrants(ctx context.Context, req *ProjectGrantSearchRequest) (*ProjectGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrants not implemented") -} -func (*UnimplementedManagementServiceServer) ProjectGrantByID(ctx context.Context, req *ProjectGrantID) (*ProjectGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method ProjectGrantByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateProjectGrant(ctx context.Context, req *ProjectGrantCreate) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateProjectGrant(ctx context.Context, req *ProjectGrantUpdate) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateProjectGrant(ctx context.Context, req *ProjectGrantID) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateProjectGrant(ctx context.Context, req *ProjectGrantID) (*ProjectGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectGrant(ctx context.Context, req *ProjectGrantID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectGrant not implemented") -} -func (*UnimplementedManagementServiceServer) GetProjectGrantMemberRoles(ctx context.Context, req *empty.Empty) (*ProjectGrantMemberRoles, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectGrantMemberRoles not implemented") -} -func (*UnimplementedManagementServiceServer) SearchProjectGrantMembers(ctx context.Context, req *ProjectGrantMemberSearchRequest) (*ProjectGrantMemberSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchProjectGrantMembers not implemented") -} -func (*UnimplementedManagementServiceServer) AddProjectGrantMember(ctx context.Context, req *ProjectGrantMemberAdd) (*ProjectGrantMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddProjectGrantMember not implemented") -} -func (*UnimplementedManagementServiceServer) ChangeProjectGrantMember(ctx context.Context, req *ProjectGrantMemberChange) (*ProjectGrantMember, error) { - return nil, status.Errorf(codes.Unimplemented, "method ChangeProjectGrantMember not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveProjectGrantMember(ctx context.Context, req *ProjectGrantMemberRemove) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveProjectGrantMember not implemented") -} -func (*UnimplementedManagementServiceServer) SearchUserGrants(ctx context.Context, req *UserGrantSearchRequest) (*UserGrantSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchUserGrants not implemented") -} -func (*UnimplementedManagementServiceServer) UserGrantByID(ctx context.Context, req *UserGrantID) (*UserGrantView, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserGrantByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateUserGrant(ctx context.Context, req *UserGrantCreate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateUserGrant(ctx context.Context, req *UserGrantUpdate) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateUserGrant(ctx context.Context, req *UserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateUserGrant(ctx context.Context, req *UserGrantID) (*UserGrant, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveUserGrant(ctx context.Context, req *UserGrantID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) BulkRemoveUserGrant(ctx context.Context, req *UserGrantRemoveBulk) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method BulkRemoveUserGrant not implemented") -} -func (*UnimplementedManagementServiceServer) IdpByID(ctx context.Context, req *IdpID) (*IdpView, error) { - return nil, status.Errorf(codes.Unimplemented, "method IdpByID not implemented") -} -func (*UnimplementedManagementServiceServer) CreateOidcIdp(ctx context.Context, req *OidcIdpConfigCreate) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateOidcIdp not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateIdpConfig(ctx context.Context, req *IdpUpdate) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateIdpConfig not implemented") -} -func (*UnimplementedManagementServiceServer) DeactivateIdpConfig(ctx context.Context, req *IdpID) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeactivateIdpConfig not implemented") -} -func (*UnimplementedManagementServiceServer) ReactivateIdpConfig(ctx context.Context, req *IdpID) (*Idp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReactivateIdpConfig not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveIdpConfig(ctx context.Context, req *IdpID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveIdpConfig not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateOidcIdpConfig(ctx context.Context, req *OidcIdpConfigUpdate) (*OidcIdpConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateOidcIdpConfig not implemented") -} -func (*UnimplementedManagementServiceServer) SearchIdps(ctx context.Context, req *IdpSearchRequest) (*IdpSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchIdps not implemented") -} -func (*UnimplementedManagementServiceServer) GetLoginPolicy(ctx context.Context, req *empty.Empty) (*LoginPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetDefaultLoginPolicy(ctx context.Context, req *empty.Empty) (*LoginPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreateLoginPolicy(ctx context.Context, req *LoginPolicyRequest) (*LoginPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdateLoginPolicy(ctx context.Context, req *LoginPolicyRequest) (*LoginPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveLoginPolicy(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetLoginPolicyIdpProviders(ctx context.Context, req *IdpProviderSearchRequest) (*IdpProviderSearchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLoginPolicyIdpProviders not implemented") -} -func (*UnimplementedManagementServiceServer) AddIdpProviderToLoginPolicy(ctx context.Context, req *IdpProviderAdd) (*IdpProvider, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddIdpProviderToLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveIdpProviderFromLoginPolicy(ctx context.Context, req *IdpProviderID) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveIdpProviderFromLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetLoginPolicySecondFactors(ctx context.Context, req *empty.Empty) (*SecondFactorsResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLoginPolicySecondFactors not implemented") -} -func (*UnimplementedManagementServiceServer) AddSecondFactorToLoginPolicy(ctx context.Context, req *SecondFactor) (*SecondFactor, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddSecondFactorToLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveSecondFactorFromLoginPolicy(ctx context.Context, req *SecondFactor) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveSecondFactorFromLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetLoginPolicyMultiFactors(ctx context.Context, req *empty.Empty) (*MultiFactorsResult, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLoginPolicyMultiFactors not implemented") -} -func (*UnimplementedManagementServiceServer) AddMultiFactorToLoginPolicy(ctx context.Context, req *MultiFactor) (*MultiFactor, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddMultiFactorToLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemoveMultiFactorFromLoginPolicy(ctx context.Context, req *MultiFactor) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemoveMultiFactorFromLoginPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetPasswordComplexityPolicy(ctx context.Context, req *empty.Empty) (*PasswordComplexityPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetDefaultPasswordComplexityPolicy(ctx context.Context, req *empty.Empty) (*PasswordComplexityPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreatePasswordComplexityPolicy(ctx context.Context, req *PasswordComplexityPolicyRequest) (*PasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdatePasswordComplexityPolicy(ctx context.Context, req *PasswordComplexityPolicyRequest) (*PasswordComplexityPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemovePasswordComplexityPolicy(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemovePasswordComplexityPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetPasswordAgePolicy(ctx context.Context, req *empty.Empty) (*PasswordAgePolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetDefaultPasswordAgePolicy(ctx context.Context, req *empty.Empty) (*PasswordAgePolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreatePasswordAgePolicy(ctx context.Context, req *PasswordAgePolicyRequest) (*PasswordAgePolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdatePasswordAgePolicy(ctx context.Context, req *PasswordAgePolicyRequest) (*PasswordAgePolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemovePasswordAgePolicy(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemovePasswordAgePolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetPasswordLockoutPolicy(ctx context.Context, req *empty.Empty) (*PasswordLockoutPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) GetDefaultPasswordLockoutPolicy(ctx context.Context, req *empty.Empty) (*PasswordLockoutPolicyView, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) CreatePasswordLockoutPolicy(ctx context.Context, req *PasswordLockoutPolicyRequest) (*PasswordLockoutPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreatePasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) UpdatePasswordLockoutPolicy(ctx context.Context, req *PasswordLockoutPolicyRequest) (*PasswordLockoutPolicy, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdatePasswordLockoutPolicy not implemented") -} -func (*UnimplementedManagementServiceServer) RemovePasswordLockoutPolicy(ctx context.Context, req *empty.Empty) (*empty.Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method RemovePasswordLockoutPolicy not implemented") -} - -func RegisterManagementServiceServer(s *grpc.Server, srv ManagementServiceServer) { - s.RegisterService(&_ManagementService_serviceDesc, srv) -} - -func _ManagementService_Healthz_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).Healthz(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Healthz", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).Healthz(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_Ready_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).Ready(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Ready", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).Ready(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_Validate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).Validate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/Validate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).Validate(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetZitadelDocs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetZitadelDocs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetZitadelDocs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetZitadelDocs(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetIam_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetIam(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetIam", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetIam(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_IsUserUnique_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UniqueUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).IsUserUnique(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/IsUserUnique", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).IsUserUnique(ctx, req.(*UniqueUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserByID(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserByLoginNameGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoginName) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserByLoginNameGlobal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserByLoginNameGlobal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserByLoginNameGlobal(ctx, req.(*LoginName)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchUsers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUsers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchUsers(ctx, req.(*UserSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUserRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateUser(ctx, req.(*CreateUserRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_LockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).LockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/LockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).LockUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UnlockUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UnlockUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UnlockUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UnlockUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeleteUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeleteUser(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeleteUser", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeleteUser(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UserChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UserChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UserChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UserChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddMachineKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddMachineKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddMachineKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMachineKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddMachineKey(ctx, req.(*AddMachineKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeleteMachineKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MachineKeyIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeleteMachineKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeleteMachineKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeleteMachineKey(ctx, req.(*MachineKeyIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchMachineKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MachineKeySearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchMachineKeys(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMachineKeys", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchMachineKeys(ctx, req.(*MachineKeySearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetMachineKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MachineKeyIDRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetMachineKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMachineKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetMachineKey(ctx, req.(*MachineKeyIDRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserProfile(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserProfileRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserProfile(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserProfile", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserProfile(ctx, req.(*UpdateUserProfileRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserEmail(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeUserUserName_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserUserNameRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeUserUserName(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserUserName", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeUserUserName(ctx, req.(*UpdateUserUserNameRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeUserEmail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserEmailRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeUserEmail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserEmail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeUserEmail(ctx, req.(*UpdateUserEmailRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ResendEmailVerificationMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ResendEmailVerificationMail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendEmailVerificationMail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ResendEmailVerificationMail(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserPhone(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserPhoneRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeUserPhone(ctx, req.(*UpdateUserPhoneRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveUserPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveUserPhone(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveUserPhone", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveUserPhone(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ResendPhoneVerificationCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ResendPhoneVerificationCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendPhoneVerificationCode", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ResendPhoneVerificationCode(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserAddress(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserAddress_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserAddressRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserAddress(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserAddress", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserAddress(ctx, req.(*UpdateUserAddressRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserMachine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateMachineRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserMachine(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserMachine", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserMachine(ctx, req.(*UpdateMachineRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchUserExternalIDPs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExternalIDPSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchUserExternalIDPs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUserExternalIDPs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchUserExternalIDPs(ctx, req.(*ExternalIDPSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveExternalIDP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExternalIDPRemoveRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveExternalIDP(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveExternalIDP", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveExternalIDP(ctx, req.(*ExternalIDPRemoveRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetUserMfas_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetUserMfas(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetUserMfas", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetUserMfas(ctx, req.(*UserID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SendSetPasswordNotification_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SetPasswordNotificationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SendSetPasswordNotification(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SendSetPasswordNotification", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SendSetPasswordNotification(ctx, req.(*SetPasswordNotificationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SetInitialPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SetInitialPassword(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SetInitialPassword", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SetInitialPassword(ctx, req.(*PasswordRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ResendInitialMail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(InitialMailRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ResendInitialMail(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ResendInitialMail", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ResendInitialMail(ctx, req.(*InitialMailRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchUserMemberships_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserMembershipSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchUserMemberships(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUserMemberships", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchUserMemberships(ctx, req.(*UserMembershipSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateOrg(ctx, req.(*OrgCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_OrgChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).OrgChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/OrgChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).OrgChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetMyOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetMyOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMyOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetMyOrg(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetOrgByDomainGlobal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Domain) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetOrgByDomainGlobal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetOrgByDomainGlobal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetOrgByDomainGlobal(ctx, req.(*Domain)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateMyOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateMyOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateMyOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateMyOrg(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateMyOrg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateMyOrg(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateMyOrg", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateMyOrg(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchMyOrgDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgDomainSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchMyOrgDomains(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgDomains", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchMyOrgDomains(ctx, req.(*OrgDomainSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddOrgDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddMyOrgDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddMyOrgDomain(ctx, req.(*AddOrgDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GenerateMyOrgDomainValidation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgDomainValidationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GenerateMyOrgDomainValidation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GenerateMyOrgDomainValidation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GenerateMyOrgDomainValidation(ctx, req.(*OrgDomainValidationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ValidateMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ValidateOrgDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ValidateMyOrgDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ValidateMyOrgDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ValidateMyOrgDomain(ctx, req.(*ValidateOrgDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SetMyPrimaryOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PrimaryOrgDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SetMyPrimaryOrgDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SetMyPrimaryOrgDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SetMyPrimaryOrgDomain(ctx, req.(*PrimaryOrgDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveMyOrgDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveOrgDomainRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveMyOrgDomain(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgDomain", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveMyOrgDomain(ctx, req.(*RemoveOrgDomainRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetMyOrgIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetMyOrgIamPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetMyOrgIamPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetMyOrgIamPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetOrgMemberRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetOrgMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetOrgMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetOrgMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddOrgMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddMyOrgMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMyOrgMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddMyOrgMember(ctx, req.(*AddOrgMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeOrgMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeMyOrgMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeMyOrgMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeMyOrgMember(ctx, req.(*ChangeOrgMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveMyOrgMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RemoveOrgMemberRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveMyOrgMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMyOrgMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveMyOrgMember(ctx, req.(*RemoveOrgMemberRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchMyOrgMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OrgMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchMyOrgMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchMyOrgMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchMyOrgMembers(ctx, req.(*OrgMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjects", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjects(ctx, req.(*ProjectSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectByID(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateProject(ctx, req.(*ProjectCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateProject(ctx, req.(*ProjectUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateProject(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateProject(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProject(ctx, req.(*ProjectID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchGrantedProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GrantedProjectSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchGrantedProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchGrantedProjects", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchGrantedProjects(ctx, req.(*GrantedProjectSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetGrantedProjectByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetGrantedProjectByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetGrantedProjectByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetGrantedProjectByID(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetProjectMemberRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetProjectMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetProjectMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetProjectMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectMembers(ctx, req.(*ProjectMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddProjectMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddProjectMember(ctx, req.(*ProjectMemberAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeProjectMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeProjectMember(ctx, req.(*ProjectMemberChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectMemberRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectMember(ctx, req.(*ProjectMemberRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectRoles(ctx, req.(*ProjectRoleSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddProjectRole(ctx, req.(*ProjectRoleAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_BulkAddProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleAddBulk) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).BulkAddProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkAddProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).BulkAddProjectRole(ctx, req.(*ProjectRoleAddBulk)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeProjectRole(ctx, req.(*ProjectRoleChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectRoleRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectRole(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectRole", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectRole(ctx, req.(*ProjectRoleRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchApplications_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchApplications(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchApplications", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchApplications(ctx, req.(*ApplicationSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ApplicationByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ApplicationByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ApplicationByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ApplicationByID(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ApplicationChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ChangeRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ApplicationChanges(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ApplicationChanges", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ApplicationChanges(ctx, req.(*ChangeRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateOIDCApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OIDCApplicationCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateOIDCApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateOIDCApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateOIDCApplication(ctx, req.(*OIDCApplicationCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateApplication(ctx, req.(*ApplicationUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateApplication(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateApplication(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveApplication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveApplication(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveApplication", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveApplication(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateApplicationOIDCConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OIDCConfigUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateApplicationOIDCConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateApplicationOIDCConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateApplicationOIDCConfig(ctx, req.(*OIDCConfigUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RegenerateOIDCClientSecret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ApplicationID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RegenerateOIDCClientSecret(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RegenerateOIDCClientSecret", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RegenerateOIDCClientSecret(ctx, req.(*ApplicationID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectGrants(ctx, req.(*ProjectGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ProjectGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ProjectGrantByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ProjectGrantByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ProjectGrantByID(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateProjectGrant(ctx, req.(*ProjectGrantCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateProjectGrant(ctx, req.(*ProjectGrantUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateProjectGrant(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateProjectGrant(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectGrant(ctx, req.(*ProjectGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetProjectGrantMemberRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetProjectGrantMemberRoles(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetProjectGrantMemberRoles", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetProjectGrantMemberRoles(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchProjectGrantMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchProjectGrantMembers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchProjectGrantMembers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchProjectGrantMembers(ctx, req.(*ProjectGrantMemberSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddProjectGrantMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddProjectGrantMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddProjectGrantMember(ctx, req.(*ProjectGrantMemberAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ChangeProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberChange) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ChangeProjectGrantMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ChangeProjectGrantMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ChangeProjectGrantMember(ctx, req.(*ProjectGrantMemberChange)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveProjectGrantMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ProjectGrantMemberRemove) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveProjectGrantMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveProjectGrantMember", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveProjectGrantMember(ctx, req.(*ProjectGrantMemberRemove)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchUserGrants_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchUserGrants(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchUserGrants", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchUserGrants(ctx, req.(*UserGrantSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UserGrantByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UserGrantByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UserGrantByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UserGrantByID(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateUserGrant(ctx, req.(*UserGrantCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateUserGrant(ctx, req.(*UserGrantUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateUserGrant(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateUserGrant(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveUserGrant(ctx, req.(*UserGrantID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_BulkRemoveUserGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserGrantRemoveBulk) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).BulkRemoveUserGrant(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/BulkRemoveUserGrant", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).BulkRemoveUserGrant(ctx, req.(*UserGrantRemoveBulk)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_IdpByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).IdpByID(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/IdpByID", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).IdpByID(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateOidcIdp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OidcIdpConfigCreate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateOidcIdp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateOidcIdp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateOidcIdp(ctx, req.(*OidcIdpConfigCreate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateIdpConfig(ctx, req.(*IdpUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_DeactivateIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).DeactivateIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/DeactivateIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).DeactivateIdpConfig(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_ReactivateIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).ReactivateIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/ReactivateIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).ReactivateIdpConfig(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveIdpConfig(ctx, req.(*IdpID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateOidcIdpConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OidcIdpConfigUpdate) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateOidcIdpConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateOidcIdpConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateOidcIdpConfig(ctx, req.(*OidcIdpConfigUpdate)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_SearchIdps_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).SearchIdps(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/SearchIdps", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).SearchIdps(ctx, req.(*IdpSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetLoginPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetDefaultLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetDefaultLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetDefaultLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetDefaultLoginPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreateLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoginPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreateLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreateLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreateLoginPolicy(ctx, req.(*LoginPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdateLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(LoginPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdateLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdateLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdateLoginPolicy(ctx, req.(*LoginPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveLoginPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetLoginPolicyIdpProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpProviderSearchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetLoginPolicyIdpProviders(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicyIdpProviders", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetLoginPolicyIdpProviders(ctx, req.(*IdpProviderSearchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddIdpProviderToLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpProviderAdd) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddIdpProviderToLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddIdpProviderToLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddIdpProviderToLoginPolicy(ctx, req.(*IdpProviderAdd)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveIdpProviderFromLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(IdpProviderID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveIdpProviderFromLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveIdpProviderFromLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveIdpProviderFromLoginPolicy(ctx, req.(*IdpProviderID)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetLoginPolicySecondFactors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetLoginPolicySecondFactors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicySecondFactors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetLoginPolicySecondFactors(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddSecondFactorToLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SecondFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddSecondFactorToLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddSecondFactorToLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddSecondFactorToLoginPolicy(ctx, req.(*SecondFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveSecondFactorFromLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SecondFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveSecondFactorFromLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveSecondFactorFromLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveSecondFactorFromLoginPolicy(ctx, req.(*SecondFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetLoginPolicyMultiFactors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetLoginPolicyMultiFactors(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetLoginPolicyMultiFactors", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetLoginPolicyMultiFactors(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_AddMultiFactorToLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MultiFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).AddMultiFactorToLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/AddMultiFactorToLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).AddMultiFactorToLoginPolicy(ctx, req.(*MultiFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemoveMultiFactorFromLoginPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MultiFactor) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemoveMultiFactorFromLoginPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemoveMultiFactorFromLoginPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemoveMultiFactorFromLoginPolicy(ctx, req.(*MultiFactor)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetPasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetPasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetPasswordComplexityPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetDefaultPasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetDefaultPasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetDefaultPasswordComplexityPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreatePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordComplexityPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreatePasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreatePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdatePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordComplexityPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdatePasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdatePasswordComplexityPolicy(ctx, req.(*PasswordComplexityPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemovePasswordComplexityPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemovePasswordComplexityPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordComplexityPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemovePasswordComplexityPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetPasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetPasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetPasswordAgePolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetDefaultPasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetDefaultPasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetDefaultPasswordAgePolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreatePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordAgePolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreatePasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreatePasswordAgePolicy(ctx, req.(*PasswordAgePolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdatePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordAgePolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdatePasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdatePasswordAgePolicy(ctx, req.(*PasswordAgePolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemovePasswordAgePolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemovePasswordAgePolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordAgePolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemovePasswordAgePolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetPasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetPasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetPasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetPasswordLockoutPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_GetDefaultPasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).GetDefaultPasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/GetDefaultPasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).GetDefaultPasswordLockoutPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_CreatePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordLockoutPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).CreatePasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/CreatePasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).CreatePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_UpdatePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PasswordLockoutPolicyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).UpdatePasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/UpdatePasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).UpdatePasswordLockoutPolicy(ctx, req.(*PasswordLockoutPolicyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ManagementService_RemovePasswordLockoutPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(empty.Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ManagementServiceServer).RemovePasswordLockoutPolicy(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/caos.zitadel.management.api.v1.ManagementService/RemovePasswordLockoutPolicy", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ManagementServiceServer).RemovePasswordLockoutPolicy(ctx, req.(*empty.Empty)) - } - return interceptor(ctx, in, info, handler) -} - -var _ManagementService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "caos.zitadel.management.api.v1.ManagementService", - HandlerType: (*ManagementServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Healthz", - Handler: _ManagementService_Healthz_Handler, - }, - { - MethodName: "Ready", - Handler: _ManagementService_Ready_Handler, - }, - { - MethodName: "Validate", - Handler: _ManagementService_Validate_Handler, - }, - { - MethodName: "GetZitadelDocs", - Handler: _ManagementService_GetZitadelDocs_Handler, - }, - { - MethodName: "GetIam", - Handler: _ManagementService_GetIam_Handler, - }, - { - MethodName: "IsUserUnique", - Handler: _ManagementService_IsUserUnique_Handler, - }, - { - MethodName: "GetUserByID", - Handler: _ManagementService_GetUserByID_Handler, - }, - { - MethodName: "GetUserByLoginNameGlobal", - Handler: _ManagementService_GetUserByLoginNameGlobal_Handler, - }, - { - MethodName: "SearchUsers", - Handler: _ManagementService_SearchUsers_Handler, - }, - { - MethodName: "CreateUser", - Handler: _ManagementService_CreateUser_Handler, - }, - { - MethodName: "DeactivateUser", - Handler: _ManagementService_DeactivateUser_Handler, - }, - { - MethodName: "ReactivateUser", - Handler: _ManagementService_ReactivateUser_Handler, - }, - { - MethodName: "LockUser", - Handler: _ManagementService_LockUser_Handler, - }, - { - MethodName: "UnlockUser", - Handler: _ManagementService_UnlockUser_Handler, - }, - { - MethodName: "DeleteUser", - Handler: _ManagementService_DeleteUser_Handler, - }, - { - MethodName: "UserChanges", - Handler: _ManagementService_UserChanges_Handler, - }, - { - MethodName: "AddMachineKey", - Handler: _ManagementService_AddMachineKey_Handler, - }, - { - MethodName: "DeleteMachineKey", - Handler: _ManagementService_DeleteMachineKey_Handler, - }, - { - MethodName: "SearchMachineKeys", - Handler: _ManagementService_SearchMachineKeys_Handler, - }, - { - MethodName: "GetMachineKey", - Handler: _ManagementService_GetMachineKey_Handler, - }, - { - MethodName: "GetUserProfile", - Handler: _ManagementService_GetUserProfile_Handler, - }, - { - MethodName: "UpdateUserProfile", - Handler: _ManagementService_UpdateUserProfile_Handler, - }, - { - MethodName: "GetUserEmail", - Handler: _ManagementService_GetUserEmail_Handler, - }, - { - MethodName: "ChangeUserUserName", - Handler: _ManagementService_ChangeUserUserName_Handler, - }, - { - MethodName: "ChangeUserEmail", - Handler: _ManagementService_ChangeUserEmail_Handler, - }, - { - MethodName: "ResendEmailVerificationMail", - Handler: _ManagementService_ResendEmailVerificationMail_Handler, - }, - { - MethodName: "GetUserPhone", - Handler: _ManagementService_GetUserPhone_Handler, - }, - { - MethodName: "ChangeUserPhone", - Handler: _ManagementService_ChangeUserPhone_Handler, - }, - { - MethodName: "RemoveUserPhone", - Handler: _ManagementService_RemoveUserPhone_Handler, - }, - { - MethodName: "ResendPhoneVerificationCode", - Handler: _ManagementService_ResendPhoneVerificationCode_Handler, - }, - { - MethodName: "GetUserAddress", - Handler: _ManagementService_GetUserAddress_Handler, - }, - { - MethodName: "UpdateUserAddress", - Handler: _ManagementService_UpdateUserAddress_Handler, - }, - { - MethodName: "UpdateUserMachine", - Handler: _ManagementService_UpdateUserMachine_Handler, - }, - { - MethodName: "SearchUserExternalIDPs", - Handler: _ManagementService_SearchUserExternalIDPs_Handler, - }, - { - MethodName: "RemoveExternalIDP", - Handler: _ManagementService_RemoveExternalIDP_Handler, - }, - { - MethodName: "GetUserMfas", - Handler: _ManagementService_GetUserMfas_Handler, - }, - { - MethodName: "SendSetPasswordNotification", - Handler: _ManagementService_SendSetPasswordNotification_Handler, - }, - { - MethodName: "SetInitialPassword", - Handler: _ManagementService_SetInitialPassword_Handler, - }, - { - MethodName: "ResendInitialMail", - Handler: _ManagementService_ResendInitialMail_Handler, - }, - { - MethodName: "SearchUserMemberships", - Handler: _ManagementService_SearchUserMemberships_Handler, - }, - { - MethodName: "CreateOrg", - Handler: _ManagementService_CreateOrg_Handler, - }, - { - MethodName: "OrgChanges", - Handler: _ManagementService_OrgChanges_Handler, - }, - { - MethodName: "GetMyOrg", - Handler: _ManagementService_GetMyOrg_Handler, - }, - { - MethodName: "GetOrgByDomainGlobal", - Handler: _ManagementService_GetOrgByDomainGlobal_Handler, - }, - { - MethodName: "DeactivateMyOrg", - Handler: _ManagementService_DeactivateMyOrg_Handler, - }, - { - MethodName: "ReactivateMyOrg", - Handler: _ManagementService_ReactivateMyOrg_Handler, - }, - { - MethodName: "SearchMyOrgDomains", - Handler: _ManagementService_SearchMyOrgDomains_Handler, - }, - { - MethodName: "AddMyOrgDomain", - Handler: _ManagementService_AddMyOrgDomain_Handler, - }, - { - MethodName: "GenerateMyOrgDomainValidation", - Handler: _ManagementService_GenerateMyOrgDomainValidation_Handler, - }, - { - MethodName: "ValidateMyOrgDomain", - Handler: _ManagementService_ValidateMyOrgDomain_Handler, - }, - { - MethodName: "SetMyPrimaryOrgDomain", - Handler: _ManagementService_SetMyPrimaryOrgDomain_Handler, - }, - { - MethodName: "RemoveMyOrgDomain", - Handler: _ManagementService_RemoveMyOrgDomain_Handler, - }, - { - MethodName: "GetMyOrgIamPolicy", - Handler: _ManagementService_GetMyOrgIamPolicy_Handler, - }, - { - MethodName: "GetOrgMemberRoles", - Handler: _ManagementService_GetOrgMemberRoles_Handler, - }, - { - MethodName: "AddMyOrgMember", - Handler: _ManagementService_AddMyOrgMember_Handler, - }, - { - MethodName: "ChangeMyOrgMember", - Handler: _ManagementService_ChangeMyOrgMember_Handler, - }, - { - MethodName: "RemoveMyOrgMember", - Handler: _ManagementService_RemoveMyOrgMember_Handler, - }, - { - MethodName: "SearchMyOrgMembers", - Handler: _ManagementService_SearchMyOrgMembers_Handler, - }, - { - MethodName: "ProjectChanges", - Handler: _ManagementService_ProjectChanges_Handler, - }, - { - MethodName: "SearchProjects", - Handler: _ManagementService_SearchProjects_Handler, - }, - { - MethodName: "ProjectByID", - Handler: _ManagementService_ProjectByID_Handler, - }, - { - MethodName: "CreateProject", - Handler: _ManagementService_CreateProject_Handler, - }, - { - MethodName: "UpdateProject", - Handler: _ManagementService_UpdateProject_Handler, - }, - { - MethodName: "DeactivateProject", - Handler: _ManagementService_DeactivateProject_Handler, - }, - { - MethodName: "ReactivateProject", - Handler: _ManagementService_ReactivateProject_Handler, - }, - { - MethodName: "RemoveProject", - Handler: _ManagementService_RemoveProject_Handler, - }, - { - MethodName: "SearchGrantedProjects", - Handler: _ManagementService_SearchGrantedProjects_Handler, - }, - { - MethodName: "GetGrantedProjectByID", - Handler: _ManagementService_GetGrantedProjectByID_Handler, - }, - { - MethodName: "GetProjectMemberRoles", - Handler: _ManagementService_GetProjectMemberRoles_Handler, - }, - { - MethodName: "SearchProjectMembers", - Handler: _ManagementService_SearchProjectMembers_Handler, - }, - { - MethodName: "AddProjectMember", - Handler: _ManagementService_AddProjectMember_Handler, - }, - { - MethodName: "ChangeProjectMember", - Handler: _ManagementService_ChangeProjectMember_Handler, - }, - { - MethodName: "RemoveProjectMember", - Handler: _ManagementService_RemoveProjectMember_Handler, - }, - { - MethodName: "SearchProjectRoles", - Handler: _ManagementService_SearchProjectRoles_Handler, - }, - { - MethodName: "AddProjectRole", - Handler: _ManagementService_AddProjectRole_Handler, - }, - { - MethodName: "BulkAddProjectRole", - Handler: _ManagementService_BulkAddProjectRole_Handler, - }, - { - MethodName: "ChangeProjectRole", - Handler: _ManagementService_ChangeProjectRole_Handler, - }, - { - MethodName: "RemoveProjectRole", - Handler: _ManagementService_RemoveProjectRole_Handler, - }, - { - MethodName: "SearchApplications", - Handler: _ManagementService_SearchApplications_Handler, - }, - { - MethodName: "ApplicationByID", - Handler: _ManagementService_ApplicationByID_Handler, - }, - { - MethodName: "ApplicationChanges", - Handler: _ManagementService_ApplicationChanges_Handler, - }, - { - MethodName: "CreateOIDCApplication", - Handler: _ManagementService_CreateOIDCApplication_Handler, - }, - { - MethodName: "UpdateApplication", - Handler: _ManagementService_UpdateApplication_Handler, - }, - { - MethodName: "DeactivateApplication", - Handler: _ManagementService_DeactivateApplication_Handler, - }, - { - MethodName: "ReactivateApplication", - Handler: _ManagementService_ReactivateApplication_Handler, - }, - { - MethodName: "RemoveApplication", - Handler: _ManagementService_RemoveApplication_Handler, - }, - { - MethodName: "UpdateApplicationOIDCConfig", - Handler: _ManagementService_UpdateApplicationOIDCConfig_Handler, - }, - { - MethodName: "RegenerateOIDCClientSecret", - Handler: _ManagementService_RegenerateOIDCClientSecret_Handler, - }, - { - MethodName: "SearchProjectGrants", - Handler: _ManagementService_SearchProjectGrants_Handler, - }, - { - MethodName: "ProjectGrantByID", - Handler: _ManagementService_ProjectGrantByID_Handler, - }, - { - MethodName: "CreateProjectGrant", - Handler: _ManagementService_CreateProjectGrant_Handler, - }, - { - MethodName: "UpdateProjectGrant", - Handler: _ManagementService_UpdateProjectGrant_Handler, - }, - { - MethodName: "DeactivateProjectGrant", - Handler: _ManagementService_DeactivateProjectGrant_Handler, - }, - { - MethodName: "ReactivateProjectGrant", - Handler: _ManagementService_ReactivateProjectGrant_Handler, - }, - { - MethodName: "RemoveProjectGrant", - Handler: _ManagementService_RemoveProjectGrant_Handler, - }, - { - MethodName: "GetProjectGrantMemberRoles", - Handler: _ManagementService_GetProjectGrantMemberRoles_Handler, - }, - { - MethodName: "SearchProjectGrantMembers", - Handler: _ManagementService_SearchProjectGrantMembers_Handler, - }, - { - MethodName: "AddProjectGrantMember", - Handler: _ManagementService_AddProjectGrantMember_Handler, - }, - { - MethodName: "ChangeProjectGrantMember", - Handler: _ManagementService_ChangeProjectGrantMember_Handler, - }, - { - MethodName: "RemoveProjectGrantMember", - Handler: _ManagementService_RemoveProjectGrantMember_Handler, - }, - { - MethodName: "SearchUserGrants", - Handler: _ManagementService_SearchUserGrants_Handler, - }, - { - MethodName: "UserGrantByID", - Handler: _ManagementService_UserGrantByID_Handler, - }, - { - MethodName: "CreateUserGrant", - Handler: _ManagementService_CreateUserGrant_Handler, - }, - { - MethodName: "UpdateUserGrant", - Handler: _ManagementService_UpdateUserGrant_Handler, - }, - { - MethodName: "DeactivateUserGrant", - Handler: _ManagementService_DeactivateUserGrant_Handler, - }, - { - MethodName: "ReactivateUserGrant", - Handler: _ManagementService_ReactivateUserGrant_Handler, - }, - { - MethodName: "RemoveUserGrant", - Handler: _ManagementService_RemoveUserGrant_Handler, - }, - { - MethodName: "BulkRemoveUserGrant", - Handler: _ManagementService_BulkRemoveUserGrant_Handler, - }, - { - MethodName: "IdpByID", - Handler: _ManagementService_IdpByID_Handler, - }, - { - MethodName: "CreateOidcIdp", - Handler: _ManagementService_CreateOidcIdp_Handler, - }, - { - MethodName: "UpdateIdpConfig", - Handler: _ManagementService_UpdateIdpConfig_Handler, - }, - { - MethodName: "DeactivateIdpConfig", - Handler: _ManagementService_DeactivateIdpConfig_Handler, - }, - { - MethodName: "ReactivateIdpConfig", - Handler: _ManagementService_ReactivateIdpConfig_Handler, - }, - { - MethodName: "RemoveIdpConfig", - Handler: _ManagementService_RemoveIdpConfig_Handler, - }, - { - MethodName: "UpdateOidcIdpConfig", - Handler: _ManagementService_UpdateOidcIdpConfig_Handler, - }, - { - MethodName: "SearchIdps", - Handler: _ManagementService_SearchIdps_Handler, - }, - { - MethodName: "GetLoginPolicy", - Handler: _ManagementService_GetLoginPolicy_Handler, - }, - { - MethodName: "GetDefaultLoginPolicy", - Handler: _ManagementService_GetDefaultLoginPolicy_Handler, - }, - { - MethodName: "CreateLoginPolicy", - Handler: _ManagementService_CreateLoginPolicy_Handler, - }, - { - MethodName: "UpdateLoginPolicy", - Handler: _ManagementService_UpdateLoginPolicy_Handler, - }, - { - MethodName: "RemoveLoginPolicy", - Handler: _ManagementService_RemoveLoginPolicy_Handler, - }, - { - MethodName: "GetLoginPolicyIdpProviders", - Handler: _ManagementService_GetLoginPolicyIdpProviders_Handler, - }, - { - MethodName: "AddIdpProviderToLoginPolicy", - Handler: _ManagementService_AddIdpProviderToLoginPolicy_Handler, - }, - { - MethodName: "RemoveIdpProviderFromLoginPolicy", - Handler: _ManagementService_RemoveIdpProviderFromLoginPolicy_Handler, - }, - { - MethodName: "GetLoginPolicySecondFactors", - Handler: _ManagementService_GetLoginPolicySecondFactors_Handler, - }, - { - MethodName: "AddSecondFactorToLoginPolicy", - Handler: _ManagementService_AddSecondFactorToLoginPolicy_Handler, - }, - { - MethodName: "RemoveSecondFactorFromLoginPolicy", - Handler: _ManagementService_RemoveSecondFactorFromLoginPolicy_Handler, - }, - { - MethodName: "GetLoginPolicyMultiFactors", - Handler: _ManagementService_GetLoginPolicyMultiFactors_Handler, - }, - { - MethodName: "AddMultiFactorToLoginPolicy", - Handler: _ManagementService_AddMultiFactorToLoginPolicy_Handler, - }, - { - MethodName: "RemoveMultiFactorFromLoginPolicy", - Handler: _ManagementService_RemoveMultiFactorFromLoginPolicy_Handler, - }, - { - MethodName: "GetPasswordComplexityPolicy", - Handler: _ManagementService_GetPasswordComplexityPolicy_Handler, - }, - { - MethodName: "GetDefaultPasswordComplexityPolicy", - Handler: _ManagementService_GetDefaultPasswordComplexityPolicy_Handler, - }, - { - MethodName: "CreatePasswordComplexityPolicy", - Handler: _ManagementService_CreatePasswordComplexityPolicy_Handler, - }, - { - MethodName: "UpdatePasswordComplexityPolicy", - Handler: _ManagementService_UpdatePasswordComplexityPolicy_Handler, - }, - { - MethodName: "RemovePasswordComplexityPolicy", - Handler: _ManagementService_RemovePasswordComplexityPolicy_Handler, - }, - { - MethodName: "GetPasswordAgePolicy", - Handler: _ManagementService_GetPasswordAgePolicy_Handler, - }, - { - MethodName: "GetDefaultPasswordAgePolicy", - Handler: _ManagementService_GetDefaultPasswordAgePolicy_Handler, - }, - { - MethodName: "CreatePasswordAgePolicy", - Handler: _ManagementService_CreatePasswordAgePolicy_Handler, - }, - { - MethodName: "UpdatePasswordAgePolicy", - Handler: _ManagementService_UpdatePasswordAgePolicy_Handler, - }, - { - MethodName: "RemovePasswordAgePolicy", - Handler: _ManagementService_RemovePasswordAgePolicy_Handler, - }, - { - MethodName: "GetPasswordLockoutPolicy", - Handler: _ManagementService_GetPasswordLockoutPolicy_Handler, - }, - { - MethodName: "GetDefaultPasswordLockoutPolicy", - Handler: _ManagementService_GetDefaultPasswordLockoutPolicy_Handler, - }, - { - MethodName: "CreatePasswordLockoutPolicy", - Handler: _ManagementService_CreatePasswordLockoutPolicy_Handler, - }, - { - MethodName: "UpdatePasswordLockoutPolicy", - Handler: _ManagementService_UpdatePasswordLockoutPolicy_Handler, - }, - { - MethodName: "RemovePasswordLockoutPolicy", - Handler: _ManagementService_RemovePasswordLockoutPolicy_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "management.proto", -} diff --git a/pkg/grpc/management/management.pb.gw.go b/pkg/grpc/management/management.pb.gw.go deleted file mode 100644 index 967a763364..0000000000 --- a/pkg/grpc/management/management.pb.gw.go +++ /dev/null @@ -1,14948 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: management.proto - -/* -Package management is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package management - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes/empty" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_ManagementService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Healthz(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_Healthz_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Healthz(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Ready(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_Ready_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Ready(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.Validate(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_Validate_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.Validate(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetZitadelDocs_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetZitadelDocs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetZitadelDocs_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetZitadelDocs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetIam_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetIam(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetIam_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetIam(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_IsUserUnique_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_ManagementService_IsUserUnique_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UniqueUserRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_IsUserUnique_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.IsUserUnique(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_IsUserUnique_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UniqueUserRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_IsUserUnique_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.IsUserUnique(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetUserByID(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_GetUserByLoginNameGlobal_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_ManagementService_GetUserByLoginNameGlobal_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoginName - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_GetUserByLoginNameGlobal_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetUserByLoginNameGlobal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserByLoginNameGlobal_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoginName - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_GetUserByLoginNameGlobal_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetUserByLoginNameGlobal(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchUsers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchUsers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchUsers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchUsers(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateUserRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateUserRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateUser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateUser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateUser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_LockUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.LockUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_LockUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.LockUser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UnlockUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UnlockUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UnlockUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UnlockUser(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeleteUser(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeleteUser_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeleteUser(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_UserChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_ManagementService_UserChanges_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_UserChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UserChanges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UserChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_UserChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UserChanges(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddMachineKey_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddMachineKeyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.AddMachineKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddMachineKey_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddMachineKeyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.AddMachineKey(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeleteMachineKey_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MachineKeyIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - - protoReq.KeyId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - - msg, err := client.DeleteMachineKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeleteMachineKey_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MachineKeyIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - - protoReq.KeyId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - - msg, err := server.DeleteMachineKey(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchMachineKeys_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MachineKeySearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.SearchMachineKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchMachineKeys_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MachineKeySearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.SearchMachineKeys(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetMachineKey_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MachineKeyIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - - protoReq.KeyId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - - msg, err := client.GetMachineKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetMachineKey_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MachineKeyIDRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["key_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key_id") - } - - protoReq.KeyId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key_id", err) - } - - msg, err := server.GetMachineKey(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserProfile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetUserProfile(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserProfileRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateUserProfile(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateUserProfile_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserProfileRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateUserProfile(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetUserEmail(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_ChangeUserUserName_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_ManagementService_ChangeUserUserName_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserUserNameRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ChangeUserUserName_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ChangeUserUserName(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeUserUserName_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserUserNameRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ChangeUserUserName_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ChangeUserUserName(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ChangeUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ChangeUserEmail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeUserEmail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserEmailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ChangeUserEmail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ResendEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ResendEmailVerificationMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ResendEmailVerificationMail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ResendEmailVerificationMail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ChangeUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ChangeUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserPhoneRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ChangeUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveUserPhone(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveUserPhone_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveUserPhone(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ResendPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ResendPhoneVerificationCode(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ResendPhoneVerificationCode_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ResendPhoneVerificationCode(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetUserAddress(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserAddressRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateUserAddress(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateUserAddress_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateUserAddressRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateUserAddress(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateUserMachine_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateMachineRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateUserMachine(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateUserMachine_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UpdateMachineRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateUserMachine(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchUserExternalIDPs_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.SearchUserExternalIDPs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchUserExternalIDPs_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.SearchUserExternalIDPs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveExternalIDP_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPRemoveRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - val, ok = pathParams["external_user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "external_user_id") - } - - protoReq.ExternalUserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "external_user_id", err) - } - - msg, err := client.RemoveExternalIDP(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveExternalIDP_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ExternalIDPRemoveRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - val, ok = pathParams["external_user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "external_user_id") - } - - protoReq.ExternalUserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "external_user_id", err) - } - - msg, err := server.RemoveExternalIDP(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetUserMfas_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetUserMfas(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetUserMfas_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetUserMfas(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SendSetPasswordNotification_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetPasswordNotificationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.SendSetPasswordNotification(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SendSetPasswordNotification_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SetPasswordNotificationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.SendSetPasswordNotification(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SetInitialPassword_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.SetInitialPassword(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SetInitialPassword_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.SetInitialPassword(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ResendInitialMail_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq InitialMailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ResendInitialMail(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ResendInitialMail_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq InitialMailRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ResendInitialMail(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchUserMemberships_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserMembershipSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.SearchUserMemberships(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchUserMemberships_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserMembershipSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.SearchUserMemberships(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateOrg(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateOrg(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_OrgChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_ManagementService_OrgChanges_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_OrgChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.OrgChanges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_OrgChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_OrgChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.OrgChanges(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyOrg(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyOrg(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_GetOrgByDomainGlobal_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_ManagementService_GetOrgByDomainGlobal_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Domain - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_GetOrgByDomainGlobal_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetOrgByDomainGlobal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetOrgByDomainGlobal_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Domain - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_GetOrgByDomainGlobal_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetOrgByDomainGlobal(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.DeactivateMyOrg(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.DeactivateMyOrg(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ReactivateMyOrg(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateMyOrg_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ReactivateMyOrg(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchMyOrgDomains_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgDomainSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchMyOrgDomains(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchMyOrgDomains_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgDomainSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchMyOrgDomains(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddOrgDomainRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMyOrgDomain(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddOrgDomainRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMyOrgDomain(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GenerateMyOrgDomainValidation_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgDomainValidationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := client.GenerateMyOrgDomainValidation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GenerateMyOrgDomainValidation_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgDomainValidationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := server.GenerateMyOrgDomainValidation(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ValidateMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ValidateOrgDomainRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := client.ValidateMyOrgDomain(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ValidateMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ValidateOrgDomainRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := server.ValidateMyOrgDomain(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SetMyPrimaryOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PrimaryOrgDomainRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := client.SetMyPrimaryOrgDomain(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SetMyPrimaryOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PrimaryOrgDomainRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := server.SetMyPrimaryOrgDomain(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveOrgDomainRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := client.RemoveMyOrgDomain(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveMyOrgDomain_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveOrgDomainRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := server.RemoveMyOrgDomain(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetMyOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetMyOrgIamPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetMyOrgIamPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetMyOrgIamPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetOrgMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetOrgMemberRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetOrgMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetOrgMemberRoles(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddOrgMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMyOrgMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq AddOrgMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMyOrgMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ChangeMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeOrgMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.ChangeMyOrgMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeOrgMemberRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.ChangeMyOrgMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveOrgMemberRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.RemoveMyOrgMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveMyOrgMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq RemoveOrgMemberRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.RemoveMyOrgMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchMyOrgMembers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchMyOrgMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchMyOrgMembers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OrgMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchMyOrgMembers(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_ProjectChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_ManagementService_ProjectChanges_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ProjectChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ProjectChanges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ProjectChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ProjectChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ProjectChanges(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchProjects_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchProjects(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ProjectByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ProjectByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateProject(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateProject(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateProject(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateProject(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveProject_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveProject_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveProject(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchGrantedProjects_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GrantedProjectSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchGrantedProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchGrantedProjects_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GrantedProjectSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchGrantedProjects(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetGrantedProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.GetGrantedProjectByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetGrantedProjectByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.GetGrantedProjectByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetProjectMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetProjectMemberRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetProjectMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetProjectMemberRoles(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchProjectMembers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := client.SearchProjectMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchProjectMembers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := server.SearchProjectMembers(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.AddProjectMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.AddProjectMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ChangeProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.ChangeProjectMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.ChangeProjectMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberRemove - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.RemoveProjectMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveProjectMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectMemberRemove - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.RemoveProjectMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchProjectRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := client.SearchProjectRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchProjectRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := server.SearchProjectRoles(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.AddProjectRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.AddProjectRole(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_BulkAddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleAddBulk - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.BulkAddProjectRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_BulkAddProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleAddBulk - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.BulkAddProjectRole(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ChangeProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := client.ChangeProjectRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := server.ChangeProjectRole(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleRemove - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := client.RemoveProjectRole(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveProjectRole_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectRoleRemove - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "key") - } - - protoReq.Key, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "key", err) - } - - msg, err := server.RemoveProjectRole(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchApplications_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := client.SearchApplications(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchApplications_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := server.SearchApplications(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ApplicationByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ApplicationByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ApplicationByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ApplicationByID(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_ManagementService_ApplicationChanges_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "sec_id": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_ManagementService_ApplicationChanges_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["sec_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sec_id") - } - - protoReq.SecId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sec_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ApplicationChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ApplicationChanges(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ApplicationChanges_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ChangeRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - val, ok = pathParams["sec_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "sec_id") - } - - protoReq.SecId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "sec_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ManagementService_ApplicationChanges_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ApplicationChanges(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateOIDCApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OIDCApplicationCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := client.CreateOIDCApplication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateOIDCApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OIDCApplicationCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := server.CreateOIDCApplication(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateApplication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateApplication(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateApplication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateApplication(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateApplication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateApplication(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveApplication_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveApplication(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveApplication_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveApplication(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateApplicationOIDCConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OIDCConfigUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["application_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "application_id") - } - - protoReq.ApplicationId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "application_id", err) - } - - msg, err := client.UpdateApplicationOIDCConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateApplicationOIDCConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OIDCConfigUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["application_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "application_id") - } - - protoReq.ApplicationId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "application_id", err) - } - - msg, err := server.UpdateApplicationOIDCConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RegenerateOIDCClientSecret_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RegenerateOIDCClientSecret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RegenerateOIDCClientSecret_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ApplicationID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RegenerateOIDCClientSecret(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchProjectGrants_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := client.SearchProjectGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchProjectGrants_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := server.SearchProjectGrants(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ProjectGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ProjectGrantByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ProjectGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ProjectGrantByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := client.CreateProjectGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - msg, err := server.CreateProjectGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateProjectGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateProjectGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateProjectGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateProjectGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateProjectGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateProjectGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveProjectGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveProjectGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveProjectGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetProjectGrantMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetProjectGrantMemberRoles(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetProjectGrantMemberRoles_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetProjectGrantMemberRoles(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchProjectGrantMembers_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - msg, err := client.SearchProjectGrantMembers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchProjectGrantMembers_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - msg, err := server.SearchProjectGrantMembers(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - msg, err := client.AddProjectGrantMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - msg, err := server.AddProjectGrantMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ChangeProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.ChangeProjectGrantMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ChangeProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberChange - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.ChangeProjectGrantMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberRemove - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.RemoveProjectGrantMember(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveProjectGrantMember_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq ProjectGrantMemberRemove - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project_id") - } - - protoReq.ProjectId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project_id", err) - } - - val, ok = pathParams["grant_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "grant_id") - } - - protoReq.GrantId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "grant_id", err) - } - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.RemoveProjectGrantMember(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchUserGrants(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchUserGrants_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchUserGrants(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UserGrantByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UserGrantByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UserGrantByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := client.CreateUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - msg, err := server.CreateUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["user_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "user_id") - } - - protoReq.UserId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "user_id", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_BulkRemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantRemoveBulk - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.BulkRemoveUserGrant(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_BulkRemoveUserGrant_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserGrantRemoveBulk - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.BulkRemoveUserGrant(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_IdpByID_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.IdpByID(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_IdpByID_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.IdpByID(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateOidcIdp_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateOidcIdp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateOidcIdp_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigCreate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateOidcIdp(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.UpdateIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_DeactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.DeactivateIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_DeactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.DeactivateIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_ReactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.ReactivateIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_ReactivateIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.ReactivateIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.RemoveIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := server.RemoveIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateOidcIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_id") - } - - protoReq.IdpId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_id", err) - } - - msg, err := client.UpdateOidcIdpConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateOidcIdpConfig_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OidcIdpConfigUpdate - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_id") - } - - protoReq.IdpId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_id", err) - } - - msg, err := server.UpdateOidcIdpConfig(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_SearchIdps_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchIdps(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_SearchIdps_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SearchIdps(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetDefaultLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreateLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoginPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreateLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoginPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdateLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoginPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdateLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LoginPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemoveLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.RemoveLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetLoginPolicyIdpProviders_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetLoginPolicyIdpProviders(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetLoginPolicyIdpProviders_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderSearchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetLoginPolicyIdpProviders(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddIdpProviderToLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddIdpProviderToLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddIdpProviderToLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderAdd - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddIdpProviderToLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveIdpProviderFromLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - msg, err := client.RemoveIdpProviderFromLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveIdpProviderFromLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq IdpProviderID - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["idp_config_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "idp_config_id") - } - - protoReq.IdpConfigId, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "idp_config_id", err) - } - - msg, err := server.RemoveIdpProviderFromLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetLoginPolicySecondFactors_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetLoginPolicySecondFactors(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetLoginPolicySecondFactors_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetLoginPolicySecondFactors(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddSecondFactorToLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddSecondFactorToLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddSecondFactorToLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddSecondFactorToLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveSecondFactorFromLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["second_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "second_factor") - } - - e, err = runtime.Enum(val, SecondFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "second_factor", err) - } - - protoReq.SecondFactor = SecondFactorType(e) - - msg, err := client.RemoveSecondFactorFromLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveSecondFactorFromLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SecondFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["second_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "second_factor") - } - - e, err = runtime.Enum(val, SecondFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "second_factor", err) - } - - protoReq.SecondFactor = SecondFactorType(e) - - msg, err := server.RemoveSecondFactorFromLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetLoginPolicyMultiFactors_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetLoginPolicyMultiFactors(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetLoginPolicyMultiFactors_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetLoginPolicyMultiFactors(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_AddMultiFactorToLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.AddMultiFactorToLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_AddMultiFactorToLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.AddMultiFactorToLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemoveMultiFactorFromLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["multi_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "multi_factor") - } - - e, err = runtime.Enum(val, MultiFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "multi_factor", err) - } - - protoReq.MultiFactor = MultiFactorType(e) - - msg, err := client.RemoveMultiFactorFromLoginPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemoveMultiFactorFromLoginPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq MultiFactor - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["multi_factor"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "multi_factor") - } - - e, err = runtime.Enum(val, MultiFactorType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "multi_factor", err) - } - - protoReq.MultiFactor = MultiFactorType(e) - - msg, err := server.RemoveMultiFactorFromLoginPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetPasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetPasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetDefaultPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultPasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetDefaultPasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultPasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordComplexityPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreatePasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordComplexityPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreatePasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordComplexityPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdatePasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdatePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordComplexityPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdatePasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemovePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemovePasswordComplexityPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemovePasswordComplexityPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.RemovePasswordComplexityPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetPasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetPasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetDefaultPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultPasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetDefaultPasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultPasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordAgePolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreatePasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordAgePolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreatePasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordAgePolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdatePasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdatePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordAgePolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdatePasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemovePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemovePasswordAgePolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemovePasswordAgePolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.RemovePasswordAgePolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetPasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetPasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_GetDefaultPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.GetDefaultPasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_GetDefaultPasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.GetDefaultPasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_CreatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordLockoutPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreatePasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_CreatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordLockoutPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreatePasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_UpdatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordLockoutPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdatePasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_UpdatePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PasswordLockoutPolicyRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdatePasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -func request_ManagementService_RemovePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, client ManagementServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := client.RemovePasswordLockoutPolicy(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_ManagementService_RemovePasswordLockoutPolicy_0(ctx context.Context, marshaler runtime.Marshaler, server ManagementServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq empty.Empty - var metadata runtime.ServerMetadata - - msg, err := server.RemovePasswordLockoutPolicy(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterManagementServiceHandlerServer registers the http handlers for service ManagementService to "mux". -// UnaryRPC :call ManagementServiceServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterManagementServiceHandlerFromEndpoint instead. -func RegisterManagementServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ManagementServiceServer) error { - - mux.Handle("GET", pattern_ManagementService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_Healthz_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_Ready_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_Validate_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetZitadelDocs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetZitadelDocs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetZitadelDocs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetIam_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetIam_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetIam_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_IsUserUnique_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_IsUserUnique_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_IsUserUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserByLoginNameGlobal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserByLoginNameGlobal_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserByLoginNameGlobal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUsers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchUsers_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUsers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_LockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_LockUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_LockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UnlockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UnlockUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UnlockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_DeleteUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeleteUser_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeleteUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_UserChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UserChanges_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UserChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMachineKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddMachineKey_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMachineKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_DeleteMachineKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeleteMachineKey_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeleteMachineKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchMachineKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchMachineKeys_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchMachineKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetMachineKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetMachineKey_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetMachineKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserProfile_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateUserProfile_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ChangeUserUserName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeUserUserName_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeUserUserName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeUserEmail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ResendEmailVerificationMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ResendEmailVerificationMail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ResendEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveUserPhone_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ResendPhoneVerificationCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ResendPhoneVerificationCode_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ResendPhoneVerificationCode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserAddress_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateUserAddress_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserMachine_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateUserMachine_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserMachine_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUserExternalIDPs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchUserExternalIDPs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUserExternalIDPs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveExternalIDP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveExternalIDP_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveExternalIDP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserMfas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetUserMfas_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserMfas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SendSetPasswordNotification_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SendSetPasswordNotification_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SendSetPasswordNotification_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SetInitialPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SetInitialPassword_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SetInitialPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ResendInitialMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ResendInitialMail_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ResendInitialMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUserMemberships_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchUserMemberships_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUserMemberships_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateOrg_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_OrgChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_OrgChanges_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_OrgChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetMyOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetMyOrg_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetOrgByDomainGlobal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetOrgByDomainGlobal_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetOrgByDomainGlobal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateMyOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateMyOrg_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateMyOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateMyOrg_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchMyOrgDomains_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchMyOrgDomains_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchMyOrgDomains_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMyOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddMyOrgDomain_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_GenerateMyOrgDomainValidation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GenerateMyOrgDomainValidation_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GenerateMyOrgDomainValidation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ValidateMyOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ValidateMyOrgDomain_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ValidateMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SetMyPrimaryOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SetMyPrimaryOrgDomain_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SetMyPrimaryOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveMyOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveMyOrgDomain_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetMyOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetMyOrgIamPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetMyOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetOrgMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetOrgMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetOrgMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMyOrgMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddMyOrgMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeMyOrgMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeMyOrgMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveMyOrgMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveMyOrgMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchMyOrgMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchMyOrgMembers_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchMyOrgMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ProjectChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ProjectChanges_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ProjectChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchProjects_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ProjectByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ProjectByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ProjectByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateProject_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateProject_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateProject_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateProject_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveProject_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchGrantedProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchGrantedProjects_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchGrantedProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetGrantedProjectByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetGrantedProjectByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetGrantedProjectByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetProjectMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetProjectMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetProjectMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchProjectMembers_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddProjectMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddProjectMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeProjectMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeProjectMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveProjectMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchProjectRoles_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_BulkAddProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_BulkAddProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_BulkAddProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveProjectRole_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchApplications_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchApplications_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchApplications_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ApplicationByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ApplicationByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ApplicationByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ApplicationChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ApplicationChanges_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ApplicationChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateOIDCApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateOIDCApplication_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateOIDCApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateApplication_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateApplication_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateApplication_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveApplication_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateApplicationOIDCConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateApplicationOIDCConfig_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateApplicationOIDCConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_RegenerateOIDCClientSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RegenerateOIDCClientSecret_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RegenerateOIDCClientSecret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchProjectGrants_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ProjectGrantByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ProjectGrantByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ProjectGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveProjectGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetProjectGrantMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetProjectGrantMemberRoles_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetProjectGrantMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectGrantMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchProjectGrantMembers_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectGrantMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddProjectGrantMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddProjectGrantMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeProjectGrantMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ChangeProjectGrantMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectGrantMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveProjectGrantMember_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUserGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchUserGrants_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUserGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_UserGrantByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UserGrantByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UserGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_BulkRemoveUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_BulkRemoveUserGrant_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_BulkRemoveUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_IdpByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_IdpByID_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_IdpByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateOidcIdp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateOidcIdp_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateOidcIdp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_DeactivateIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_ReactivateIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateOidcIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateOidcIdpConfig_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateOidcIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchIdps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_SearchIdps_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchIdps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetDefaultLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreateLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdateLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_GetLoginPolicyIdpProviders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetLoginPolicyIdpProviders_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicyIdpProviders_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddIdpProviderToLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddIdpProviderToLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddIdpProviderToLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveIdpProviderFromLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveIdpProviderFromLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveIdpProviderFromLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetLoginPolicySecondFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetLoginPolicySecondFactors_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicySecondFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddSecondFactorToLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddSecondFactorToLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddSecondFactorToLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveSecondFactorFromLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveSecondFactorFromLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveSecondFactorFromLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetLoginPolicyMultiFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetLoginPolicyMultiFactors_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicyMultiFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMultiFactorToLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_AddMultiFactorToLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMultiFactorToLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveMultiFactorFromLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemoveMultiFactorFromLoginPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveMultiFactorFromLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetPasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetDefaultPasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreatePasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreatePasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreatePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdatePasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdatePasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdatePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemovePasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemovePasswordComplexityPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemovePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetPasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetDefaultPasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreatePasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreatePasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreatePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdatePasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdatePasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdatePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemovePasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemovePasswordAgePolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemovePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetPasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_GetDefaultPasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreatePasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_CreatePasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreatePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdatePasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_UpdatePasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdatePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemovePasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_ManagementService_RemovePasswordLockoutPolicy_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemovePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterManagementServiceHandlerFromEndpoint is same as RegisterManagementServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterManagementServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterManagementServiceHandler(ctx, mux, conn) -} - -// RegisterManagementServiceHandler registers the http handlers for service ManagementService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterManagementServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterManagementServiceHandlerClient(ctx, mux, NewManagementServiceClient(conn)) -} - -// RegisterManagementServiceHandlerClient registers the http handlers for service ManagementService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ManagementServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ManagementServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ManagementServiceClient" to call the correct interceptors. -func RegisterManagementServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ManagementServiceClient) error { - - mux.Handle("GET", pattern_ManagementService_Healthz_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_Healthz_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_Healthz_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_Ready_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_Ready_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_Ready_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_Validate_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_Validate_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_Validate_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetZitadelDocs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetZitadelDocs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetZitadelDocs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetIam_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetIam_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetIam_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_IsUserUnique_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_IsUserUnique_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_IsUserUnique_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserByLoginNameGlobal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserByLoginNameGlobal_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserByLoginNameGlobal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUsers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchUsers_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUsers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_LockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_LockUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_LockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UnlockUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UnlockUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UnlockUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_DeleteUser_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeleteUser_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeleteUser_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_UserChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UserChanges_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UserChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMachineKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddMachineKey_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMachineKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_DeleteMachineKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeleteMachineKey_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeleteMachineKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchMachineKeys_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchMachineKeys_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchMachineKeys_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetMachineKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetMachineKey_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetMachineKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserProfile_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserProfile_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateUserProfile_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserProfile_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ChangeUserUserName_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeUserUserName_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeUserUserName_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeUserEmail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeUserEmail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeUserEmail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ResendEmailVerificationMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ResendEmailVerificationMail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ResendEmailVerificationMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveUserPhone_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveUserPhone_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveUserPhone_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ResendPhoneVerificationCode_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ResendPhoneVerificationCode_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ResendPhoneVerificationCode_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserAddress_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateUserAddress_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserAddress_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserMachine_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateUserMachine_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserMachine_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUserExternalIDPs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchUserExternalIDPs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUserExternalIDPs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveExternalIDP_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveExternalIDP_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveExternalIDP_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetUserMfas_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetUserMfas_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetUserMfas_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SendSetPasswordNotification_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SendSetPasswordNotification_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SendSetPasswordNotification_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SetInitialPassword_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SetInitialPassword_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SetInitialPassword_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ResendInitialMail_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ResendInitialMail_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ResendInitialMail_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUserMemberships_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchUserMemberships_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUserMemberships_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateOrg_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_OrgChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_OrgChanges_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_OrgChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetMyOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetMyOrg_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetOrgByDomainGlobal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetOrgByDomainGlobal_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetOrgByDomainGlobal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateMyOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateMyOrg_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateMyOrg_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateMyOrg_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateMyOrg_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchMyOrgDomains_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchMyOrgDomains_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchMyOrgDomains_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMyOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddMyOrgDomain_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_GenerateMyOrgDomainValidation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GenerateMyOrgDomainValidation_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GenerateMyOrgDomainValidation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_ValidateMyOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ValidateMyOrgDomain_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ValidateMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SetMyPrimaryOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SetMyPrimaryOrgDomain_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SetMyPrimaryOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveMyOrgDomain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveMyOrgDomain_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveMyOrgDomain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetMyOrgIamPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetMyOrgIamPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetMyOrgIamPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetOrgMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetOrgMemberRoles_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetOrgMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMyOrgMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddMyOrgMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeMyOrgMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeMyOrgMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveMyOrgMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveMyOrgMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveMyOrgMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchMyOrgMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchMyOrgMembers_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchMyOrgMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ProjectChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ProjectChanges_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ProjectChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchProjects_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ProjectByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ProjectByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ProjectByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchGrantedProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchGrantedProjects_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchGrantedProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetGrantedProjectByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetGrantedProjectByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetGrantedProjectByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetProjectMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetProjectMemberRoles_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetProjectMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchProjectMembers_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddProjectMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddProjectMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeProjectMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeProjectMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveProjectMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchProjectRoles_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddProjectRole_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_BulkAddProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_BulkAddProjectRole_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_BulkAddProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeProjectRole_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectRole_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveProjectRole_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectRole_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchApplications_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchApplications_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchApplications_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ApplicationByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ApplicationByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ApplicationByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ApplicationChanges_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ApplicationChanges_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ApplicationChanges_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateOIDCApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateOIDCApplication_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateOIDCApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateApplication_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateApplication_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateApplication_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveApplication_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveApplication_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveApplication_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateApplicationOIDCConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateApplicationOIDCConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateApplicationOIDCConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_RegenerateOIDCClientSecret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RegenerateOIDCClientSecret_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RegenerateOIDCClientSecret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchProjectGrants_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_ProjectGrantByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ProjectGrantByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ProjectGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateProjectGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateProjectGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateProjectGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateProjectGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveProjectGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetProjectGrantMemberRoles_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetProjectGrantMemberRoles_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetProjectGrantMemberRoles_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchProjectGrantMembers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchProjectGrantMembers_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchProjectGrantMembers_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddProjectGrantMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddProjectGrantMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ChangeProjectGrantMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ChangeProjectGrantMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ChangeProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveProjectGrantMember_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveProjectGrantMember_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveProjectGrantMember_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchUserGrants_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchUserGrants_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchUserGrants_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_UserGrantByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UserGrantByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UserGrantByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_BulkRemoveUserGrant_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_BulkRemoveUserGrant_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_BulkRemoveUserGrant_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_IdpByID_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_IdpByID_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_IdpByID_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateOidcIdp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateOidcIdp_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateOidcIdp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_DeactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_DeactivateIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_DeactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_ReactivateIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_ReactivateIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_ReactivateIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateOidcIdpConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateOidcIdpConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateOidcIdpConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_SearchIdps_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_SearchIdps_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_SearchIdps_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetDefaultLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreateLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreateLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreateLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdateLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdateLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdateLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_GetLoginPolicyIdpProviders_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetLoginPolicyIdpProviders_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicyIdpProviders_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddIdpProviderToLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddIdpProviderToLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddIdpProviderToLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveIdpProviderFromLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveIdpProviderFromLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveIdpProviderFromLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetLoginPolicySecondFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetLoginPolicySecondFactors_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicySecondFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddSecondFactorToLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddSecondFactorToLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddSecondFactorToLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveSecondFactorFromLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveSecondFactorFromLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveSecondFactorFromLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetLoginPolicyMultiFactors_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetLoginPolicyMultiFactors_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetLoginPolicyMultiFactors_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_AddMultiFactorToLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_AddMultiFactorToLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_AddMultiFactorToLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemoveMultiFactorFromLoginPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemoveMultiFactorFromLoginPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemoveMultiFactorFromLoginPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetPasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultPasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetDefaultPasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultPasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreatePasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreatePasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreatePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdatePasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdatePasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdatePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemovePasswordComplexityPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemovePasswordComplexityPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemovePasswordComplexityPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetPasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultPasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetDefaultPasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultPasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreatePasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreatePasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreatePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdatePasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdatePasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdatePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemovePasswordAgePolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemovePasswordAgePolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemovePasswordAgePolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetPasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ManagementService_GetDefaultPasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_GetDefaultPasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_GetDefaultPasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_ManagementService_CreatePasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_CreatePasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_CreatePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_ManagementService_UpdatePasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_UpdatePasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_UpdatePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_ManagementService_RemovePasswordLockoutPolicy_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ManagementService_RemovePasswordLockoutPolicy_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ManagementService_RemovePasswordLockoutPolicy_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_ManagementService_Healthz_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"healthz"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_Ready_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"ready"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_Validate_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"validate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetZitadelDocs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"zitadel", "docs"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetIam_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"iam"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_IsUserUnique_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_isunique"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserByLoginNameGlobal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "users", "_byloginname"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchUsers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"users", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"users"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_LockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_lock"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UnlockUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_unlock"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeleteUser_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"users", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UserChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddMachineKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "user_id", "keys"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeleteMachineKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "keys", "key_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchMachineKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "user_id", "keys", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetMachineKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "keys", "key_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "profile"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateUserProfile_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "profile"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "email"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeUserUserName_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "username"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeUserEmail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "email"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ResendEmailVerificationMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "email", "_resendverification"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveUserPhone_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "phone"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ResendPhoneVerificationCode_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "phone", "_resendverification"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "address"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateUserAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "address"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateUserMachine_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "machine"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchUserExternalIDPs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "user_id", "externalidps", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveExternalIDP_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"users", "user_id", "externalidps", "idp_config_id", "external_user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetUserMfas_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "mfas"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SendSetPasswordNotification_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "password", "_sendsetnotification"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SetInitialPassword_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "id", "password", "_initialize"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ResendInitialMail_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "id", "_resendinitialisation"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchUserMemberships_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"users", "user_id", "memberships", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"orgs"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_OrgChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"orgs", "id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"orgs", "me"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetOrgByDomainGlobal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"global", "orgs", "_bydomain"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateMyOrg_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchMyOrgDomains_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "domains", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "domains"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GenerateMyOrgDomainValidation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"orgs", "me", "domains", "domain", "validation", "create"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ValidateMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"orgs", "me", "domains", "domain", "validation", "check"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SetMyPrimaryOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"orgs", "me", "domains", "domain", "_primary"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveMyOrgDomain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "domains", "domain"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetMyOrgIamPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "iampolicy"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetOrgMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"orgs", "me", "members"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveMyOrgMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchMyOrgMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ProjectChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"projects", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ProjectByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"projects"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1}, []string{"projects", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchGrantedProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"grantedprojects", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetGrantedProjectByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"grantedprojects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetProjectMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"projects", "members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchProjectMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "members"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveProjectMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchProjectRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "roles", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "id", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_BulkAddProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "id", "roles", "_bulk"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "roles", "key"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveProjectRole_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "id", "roles", "key"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchApplications_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "applications", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ApplicationByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ApplicationChanges_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "id", "applications", "sec_id", "changes"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateOIDCApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "applications", "oidc"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "project_id", "applications", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "project_id", "applications", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveApplication_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "applications", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateApplicationOIDCConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "project_id", "applications", "application_id", "oidcconfig"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RegenerateOIDCClientSecret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"projects", "project_id", "applications", "id", "oidcconfig", "_changeclientsecret"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchProjectGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 2, 3}, []string{"projects", "project_id", "grants", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ProjectGrantByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"projects", "project_id", "grants"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "project_id", "grants", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "project_id", "grants", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveProjectGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"projects", "project_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetProjectGrantMemberRoles_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"projects", "grants", "members", "roles"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchProjectGrantMembers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddProjectGrantMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"projects", "project_id", "grants", "grant_id", "members"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ChangeProjectGrantMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveProjectGrantMember_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"projects", "project_id", "grants", "grant_id", "members", "user_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchUserGrants_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"users", "grants", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UserGrantByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2}, []string{"users", "user_id", "grants"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"users", "user_id", "grants", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"users", "user_id", "grants", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 1, 0, 4, 1, 5, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"users", "user_id", "grants", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_BulkRemoveUserGrant_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"usersgrants", "_bulk"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_IdpByID_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "idps", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateOidcIdp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "idps", "oidc"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "idps", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_DeactivateIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"orgs", "me", "idps", "id", "_deactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_ReactivateIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"orgs", "me", "idps", "id", "_reactivate"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"orgs", "me", "idps", "id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateOidcIdpConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"orgs", "me", "idps", "idp_id", "oidcconfig"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_SearchIdps_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "idps", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetDefaultLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "default", "policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreateLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdateLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"orgs", "me", "policies", "login"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetLoginPolicyIdpProviders_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"orgs", "me", "policies", "login", "idpproviders", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddIdpProviderToLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "login", "idpproviders"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveIdpProviderFromLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"orgs", "me", "policies", "login", "idpproviders", "idp_config_id"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetLoginPolicySecondFactors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"orgs", "me", "policies", "login", "secondfactors", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddSecondFactorToLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "login", "secondfactors"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveSecondFactorFromLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"orgs", "me", "policies", "login", "secondfactors", "second_factor"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetLoginPolicyMultiFactors_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5}, []string{"orgs", "me", "policies", "login", "multifactors", "_search"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_AddMultiFactorToLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "login", "multifactors"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemoveMultiFactorFromLoginPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"orgs", "me", "policies", "login", "multifactors", "multi_factor"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetDefaultPasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "default", "policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreatePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdatePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemovePasswordComplexityPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "complexity"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetPasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetDefaultPasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "default", "policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreatePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdatePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemovePasswordAgePolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "age"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetPasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_GetDefaultPasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "default", "policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_CreatePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_UpdatePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_ManagementService_RemovePasswordLockoutPolicy_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"orgs", "me", "policies", "password", "lockout"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_ManagementService_Healthz_0 = runtime.ForwardResponseMessage - - forward_ManagementService_Ready_0 = runtime.ForwardResponseMessage - - forward_ManagementService_Validate_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetZitadelDocs_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetIam_0 = runtime.ForwardResponseMessage - - forward_ManagementService_IsUserUnique_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserByLoginNameGlobal_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchUsers_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateUser_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateUser_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateUser_0 = runtime.ForwardResponseMessage - - forward_ManagementService_LockUser_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UnlockUser_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeleteUser_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UserChanges_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddMachineKey_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeleteMachineKey_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchMachineKeys_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetMachineKey_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserProfile_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateUserProfile_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserEmail_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeUserUserName_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeUserEmail_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ResendEmailVerificationMail_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserPhone_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeUserPhone_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveUserPhone_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ResendPhoneVerificationCode_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserAddress_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateUserAddress_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateUserMachine_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchUserExternalIDPs_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveExternalIDP_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetUserMfas_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SendSetPasswordNotification_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SetInitialPassword_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ResendInitialMail_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchUserMemberships_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateOrg_0 = runtime.ForwardResponseMessage - - forward_ManagementService_OrgChanges_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetMyOrg_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetOrgByDomainGlobal_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateMyOrg_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateMyOrg_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchMyOrgDomains_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddMyOrgDomain_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GenerateMyOrgDomainValidation_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ValidateMyOrgDomain_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SetMyPrimaryOrgDomain_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveMyOrgDomain_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetMyOrgIamPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetOrgMemberRoles_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddMyOrgMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeMyOrgMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveMyOrgMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchMyOrgMembers_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ProjectChanges_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchProjects_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ProjectByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateProject_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateProject_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateProject_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateProject_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveProject_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchGrantedProjects_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetGrantedProjectByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetProjectMemberRoles_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchProjectMembers_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddProjectMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeProjectMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveProjectMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchProjectRoles_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddProjectRole_0 = runtime.ForwardResponseMessage - - forward_ManagementService_BulkAddProjectRole_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeProjectRole_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveProjectRole_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchApplications_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ApplicationByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ApplicationChanges_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateOIDCApplication_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateApplication_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateApplication_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateApplication_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveApplication_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateApplicationOIDCConfig_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RegenerateOIDCClientSecret_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchProjectGrants_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ProjectGrantByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateProjectGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateProjectGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateProjectGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateProjectGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveProjectGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetProjectGrantMemberRoles_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchProjectGrantMembers_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddProjectGrantMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ChangeProjectGrantMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveProjectGrantMember_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchUserGrants_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UserGrantByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateUserGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateUserGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateUserGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateUserGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveUserGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_BulkRemoveUserGrant_0 = runtime.ForwardResponseMessage - - forward_ManagementService_IdpByID_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateOidcIdp_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateIdpConfig_0 = runtime.ForwardResponseMessage - - forward_ManagementService_DeactivateIdpConfig_0 = runtime.ForwardResponseMessage - - forward_ManagementService_ReactivateIdpConfig_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveIdpConfig_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateOidcIdpConfig_0 = runtime.ForwardResponseMessage - - forward_ManagementService_SearchIdps_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetDefaultLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreateLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdateLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetLoginPolicyIdpProviders_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddIdpProviderToLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveIdpProviderFromLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetLoginPolicySecondFactors_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddSecondFactorToLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveSecondFactorFromLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetLoginPolicyMultiFactors_0 = runtime.ForwardResponseMessage - - forward_ManagementService_AddMultiFactorToLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemoveMultiFactorFromLoginPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetPasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetDefaultPasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreatePasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdatePasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemovePasswordComplexityPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetPasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetDefaultPasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreatePasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdatePasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemovePasswordAgePolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetPasswordLockoutPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_GetDefaultPasswordLockoutPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_CreatePasswordLockoutPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_UpdatePasswordLockoutPolicy_0 = runtime.ForwardResponseMessage - - forward_ManagementService_RemovePasswordLockoutPolicy_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/grpc/management/management.pb.validate.go b/pkg/grpc/management/management.pb.validate.go deleted file mode 100644 index 098d2f5b92..0000000000 --- a/pkg/grpc/management/management.pb.validate.go +++ /dev/null @@ -1,15562 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: management.proto - -package management - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "strings" - "time" - "unicode/utf8" - - "github.com/golang/protobuf/ptypes" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = ptypes.DynamicAny{} -) - -// define the regex for a UUID once up-front -var _management_uuidPattern = regexp.MustCompile("^[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}$") - -// Validate checks the field values on ZitadelDocs with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ZitadelDocs) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Issuer - - // no validation rules for DiscoveryEndpoint - - return nil -} - -// ZitadelDocsValidationError is the validation error returned by -// ZitadelDocs.Validate if the designated constraints aren't met. -type ZitadelDocsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ZitadelDocsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ZitadelDocsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ZitadelDocsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ZitadelDocsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ZitadelDocsValidationError) ErrorName() string { return "ZitadelDocsValidationError" } - -// Error satisfies the builtin error interface -func (e ZitadelDocsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sZitadelDocs.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ZitadelDocsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ZitadelDocsValidationError{} - -// Validate checks the field values on Iam with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *Iam) Validate() error { - if m == nil { - return nil - } - - // no validation rules for GlobalOrgId - - // no validation rules for IamProjectId - - // no validation rules for SetUpDone - - // no validation rules for SetUpStarted - - return nil -} - -// IamValidationError is the validation error returned by Iam.Validate if the -// designated constraints aren't met. -type IamValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IamValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IamValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IamValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IamValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IamValidationError) ErrorName() string { return "IamValidationError" } - -// Error satisfies the builtin error interface -func (e IamValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIam.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IamValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IamValidationError{} - -// Validate checks the field values on ChangeRequest with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ChangeRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for SecId - - // no validation rules for Limit - - // no validation rules for SequenceOffset - - // no validation rules for Asc - - return nil -} - -// ChangeRequestValidationError is the validation error returned by -// ChangeRequest.Validate if the designated constraints aren't met. -type ChangeRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeRequestValidationError) ErrorName() string { return "ChangeRequestValidationError" } - -// Error satisfies the builtin error interface -func (e ChangeRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChangeRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeRequestValidationError{} - -// Validate checks the field values on Changes with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Changes) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetChanges() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangesValidationError{ - field: fmt.Sprintf("Changes[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Offset - - // no validation rules for Limit - - return nil -} - -// ChangesValidationError is the validation error returned by Changes.Validate -// if the designated constraints aren't met. -type ChangesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangesValidationError) ErrorName() string { return "ChangesValidationError" } - -// Error satisfies the builtin error interface -func (e ChangesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChanges.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangesValidationError{} - -// Validate checks the field values on Change with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Change) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetEventType()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "EventType", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for EditorId - - // no validation rules for Editor - - if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ChangeValidationError is the validation error returned by Change.Validate if -// the designated constraints aren't met. -type ChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeValidationError) ErrorName() string { return "ChangeValidationError" } - -// Error satisfies the builtin error interface -func (e ChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeValidationError{} - -// Validate checks the field values on ApplicationID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ApplicationID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ApplicationIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ApplicationIDValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ApplicationIDValidationError is the validation error returned by -// ApplicationID.Validate if the designated constraints aren't met. -type ApplicationIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationIDValidationError) ErrorName() string { return "ApplicationIDValidationError" } - -// Error satisfies the builtin error interface -func (e ApplicationIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplicationID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationIDValidationError{} - -// Validate checks the field values on ProjectID with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *ProjectID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectIDValidationError is the validation error returned by -// ProjectID.Validate if the designated constraints aren't met. -type ProjectIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectIDValidationError) ErrorName() string { return "ProjectIDValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectIDValidationError{} - -// Validate checks the field values on UserID with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return UserIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// UserIDValidationError is the validation error returned by UserID.Validate if -// the designated constraints aren't met. -type UserIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserIDValidationError) ErrorName() string { return "UserIDValidationError" } - -// Error satisfies the builtin error interface -func (e UserIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserIDValidationError{} - -// Validate checks the field values on LoginName with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *LoginName) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetLoginName()) < 1 { - return LoginNameValidationError{ - field: "LoginName", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// LoginNameValidationError is the validation error returned by -// LoginName.Validate if the designated constraints aren't met. -type LoginNameValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e LoginNameValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e LoginNameValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e LoginNameValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e LoginNameValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e LoginNameValidationError) ErrorName() string { return "LoginNameValidationError" } - -// Error satisfies the builtin error interface -func (e LoginNameValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sLoginName.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = LoginNameValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = LoginNameValidationError{} - -// Validate checks the field values on UniqueUserRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UniqueUserRequest) Validate() error { - if m == nil { - return nil - } - - if !_UniqueUserRequest_UserName_Pattern.MatchString(m.GetUserName()) { - return UniqueUserRequestValidationError{ - field: "UserName", - reason: "value does not match regex pattern \"^[^[:space:]]{1,200}$\"", - } - } - - if l := utf8.RuneCountInString(m.GetEmail()); l < 1 || l > 200 { - return UniqueUserRequestValidationError{ - field: "Email", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// UniqueUserRequestValidationError is the validation error returned by -// UniqueUserRequest.Validate if the designated constraints aren't met. -type UniqueUserRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UniqueUserRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UniqueUserRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UniqueUserRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UniqueUserRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UniqueUserRequestValidationError) ErrorName() string { - return "UniqueUserRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UniqueUserRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUniqueUserRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UniqueUserRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UniqueUserRequestValidationError{} - -var _UniqueUserRequest_UserName_Pattern = regexp.MustCompile("^[^[:space:]]{1,200}$") - -// Validate checks the field values on UniqueUserResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UniqueUserResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IsUnique - - return nil -} - -// UniqueUserResponseValidationError is the validation error returned by -// UniqueUserResponse.Validate if the designated constraints aren't met. -type UniqueUserResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UniqueUserResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UniqueUserResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UniqueUserResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UniqueUserResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UniqueUserResponseValidationError) ErrorName() string { - return "UniqueUserResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UniqueUserResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUniqueUserResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UniqueUserResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UniqueUserResponseValidationError{} - -// Validate checks the field values on CreateUserRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *CreateUserRequest) Validate() error { - if m == nil { - return nil - } - - if !_CreateUserRequest_UserName_Pattern.MatchString(m.GetUserName()) { - return CreateUserRequestValidationError{ - field: "UserName", - reason: "value does not match regex pattern \"^[^[:space:]]{1,200}$\"", - } - } - - switch m.User.(type) { - - case *CreateUserRequest_Human: - - if v, ok := interface{}(m.GetHuman()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateUserRequestValidationError{ - field: "Human", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *CreateUserRequest_Machine: - - if v, ok := interface{}(m.GetMachine()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateUserRequestValidationError{ - field: "Machine", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - return CreateUserRequestValidationError{ - field: "User", - reason: "value is required", - } - - } - - return nil -} - -// CreateUserRequestValidationError is the validation error returned by -// CreateUserRequest.Validate if the designated constraints aren't met. -type CreateUserRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateUserRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateUserRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateUserRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateUserRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateUserRequestValidationError) ErrorName() string { - return "CreateUserRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateUserRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateUserRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateUserRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateUserRequestValidationError{} - -var _CreateUserRequest_UserName_Pattern = regexp.MustCompile("^[^[:space:]]{1,200}$") - -// Validate checks the field values on CreateHumanRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *CreateHumanRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetFirstName()); l < 1 || l > 200 { - return CreateHumanRequestValidationError{ - field: "FirstName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetLastName()); l < 1 || l > 200 { - return CreateHumanRequestValidationError{ - field: "LastName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if utf8.RuneCountInString(m.GetNickName()) > 200 { - return CreateHumanRequestValidationError{ - field: "NickName", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPreferredLanguage()) > 200 { - return CreateHumanRequestValidationError{ - field: "PreferredLanguage", - reason: "value length must be at most 200 runes", - } - } - - // no validation rules for Gender - - if l := utf8.RuneCountInString(m.GetEmail()); l < 1 || l > 200 { - return CreateHumanRequestValidationError{ - field: "Email", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if err := m._validateEmail(m.GetEmail()); err != nil { - return CreateHumanRequestValidationError{ - field: "Email", - reason: "value must be a valid email address", - cause: err, - } - } - - // no validation rules for IsEmailVerified - - if utf8.RuneCountInString(m.GetPhone()) > 20 { - return CreateHumanRequestValidationError{ - field: "Phone", - reason: "value length must be at most 20 runes", - } - } - - // no validation rules for IsPhoneVerified - - if utf8.RuneCountInString(m.GetCountry()) > 200 { - return CreateHumanRequestValidationError{ - field: "Country", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetLocality()) > 200 { - return CreateHumanRequestValidationError{ - field: "Locality", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPostalCode()) > 200 { - return CreateHumanRequestValidationError{ - field: "PostalCode", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetRegion()) > 200 { - return CreateHumanRequestValidationError{ - field: "Region", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetStreetAddress()) > 200 { - return CreateHumanRequestValidationError{ - field: "StreetAddress", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPassword()) > 72 { - return CreateHumanRequestValidationError{ - field: "Password", - reason: "value length must be at most 72 runes", - } - } - - return nil -} - -func (m *CreateHumanRequest) _validateHostname(host string) error { - s := strings.ToLower(strings.TrimSuffix(host, ".")) - - if len(host) > 253 { - return errors.New("hostname cannot exceed 253 characters") - } - - for _, part := range strings.Split(s, ".") { - if l := len(part); l == 0 || l > 63 { - return errors.New("hostname part must be non-empty and cannot exceed 63 characters") - } - - if part[0] == '-' { - return errors.New("hostname parts cannot begin with hyphens") - } - - if part[len(part)-1] == '-' { - return errors.New("hostname parts cannot end with hyphens") - } - - for _, r := range part { - if (r < 'a' || r > 'z') && (r < '0' || r > '9') && r != '-' { - return fmt.Errorf("hostname parts can only contain alphanumeric characters or hyphens, got %q", string(r)) - } - } - } - - return nil -} - -func (m *CreateHumanRequest) _validateEmail(addr string) error { - a, err := mail.ParseAddress(addr) - if err != nil { - return err - } - addr = a.Address - - if len(addr) > 254 { - return errors.New("email addresses cannot exceed 254 characters") - } - - parts := strings.SplitN(addr, "@", 2) - - if len(parts[0]) > 64 { - return errors.New("email address local phrase cannot exceed 64 characters") - } - - return m._validateHostname(parts[1]) -} - -// CreateHumanRequestValidationError is the validation error returned by -// CreateHumanRequest.Validate if the designated constraints aren't met. -type CreateHumanRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateHumanRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateHumanRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateHumanRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateHumanRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateHumanRequestValidationError) ErrorName() string { - return "CreateHumanRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateHumanRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateHumanRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateHumanRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateHumanRequestValidationError{} - -// Validate checks the field values on CreateMachineRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *CreateMachineRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return CreateMachineRequestValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if utf8.RuneCountInString(m.GetDescription()) > 500 { - return CreateMachineRequestValidationError{ - field: "Description", - reason: "value length must be at most 500 runes", - } - } - - return nil -} - -// CreateMachineRequestValidationError is the validation error returned by -// CreateMachineRequest.Validate if the designated constraints aren't met. -type CreateMachineRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateMachineRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateMachineRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateMachineRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateMachineRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateMachineRequestValidationError) ErrorName() string { - return "CreateMachineRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateMachineRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateMachineRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateMachineRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateMachineRequestValidationError{} - -// Validate checks the field values on UserResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for UserName - - switch m.User.(type) { - - case *UserResponse_Human: - - if v, ok := interface{}(m.GetHuman()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "Human", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *UserResponse_Machine: - - if v, ok := interface{}(m.GetMachine()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserResponseValidationError{ - field: "Machine", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - return UserResponseValidationError{ - field: "User", - reason: "value is required", - } - - } - - return nil -} - -// UserResponseValidationError is the validation error returned by -// UserResponse.Validate if the designated constraints aren't met. -type UserResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserResponseValidationError) ErrorName() string { return "UserResponseValidationError" } - -// Error satisfies the builtin error interface -func (e UserResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserResponseValidationError{} - -// Validate checks the field values on UserView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for PreferredLoginName - - if v, ok := interface{}(m.GetLastLogin()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "LastLogin", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ResourceOwner - - // no validation rules for UserName - - switch m.User.(type) { - - case *UserView_Human: - - if v, ok := interface{}(m.GetHuman()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "Human", - reason: "embedded message failed validation", - cause: err, - } - } - } - - case *UserView_Machine: - - if v, ok := interface{}(m.GetMachine()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserViewValidationError{ - field: "Machine", - reason: "embedded message failed validation", - cause: err, - } - } - } - - default: - return UserViewValidationError{ - field: "User", - reason: "value is required", - } - - } - - return nil -} - -// UserViewValidationError is the validation error returned by -// UserView.Validate if the designated constraints aren't met. -type UserViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserViewValidationError) ErrorName() string { return "UserViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserViewValidationError{} - -// Validate checks the field values on HumanResponse with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *HumanResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for DisplayName - - // no validation rules for NickName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - return nil -} - -// HumanResponseValidationError is the validation error returned by -// HumanResponse.Validate if the designated constraints aren't met. -type HumanResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HumanResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HumanResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HumanResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HumanResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HumanResponseValidationError) ErrorName() string { return "HumanResponseValidationError" } - -// Error satisfies the builtin error interface -func (e HumanResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHumanResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HumanResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HumanResponseValidationError{} - -// Validate checks the field values on HumanView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *HumanView) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetPasswordChanged()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return HumanViewValidationError{ - field: "PasswordChanged", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for DisplayName - - // no validation rules for NickName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - return nil -} - -// HumanViewValidationError is the validation error returned by -// HumanView.Validate if the designated constraints aren't met. -type HumanViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e HumanViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e HumanViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e HumanViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e HumanViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e HumanViewValidationError) ErrorName() string { return "HumanViewValidationError" } - -// Error satisfies the builtin error interface -func (e HumanViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sHumanView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = HumanViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = HumanViewValidationError{} - -// Validate checks the field values on MachineResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *MachineResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Name - - // no validation rules for Description - - return nil -} - -// MachineResponseValidationError is the validation error returned by -// MachineResponse.Validate if the designated constraints aren't met. -type MachineResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineResponseValidationError) ErrorName() string { return "MachineResponseValidationError" } - -// Error satisfies the builtin error interface -func (e MachineResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineResponseValidationError{} - -// Validate checks the field values on MachineView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MachineView) Validate() error { - if m == nil { - return nil - } - - if v, ok := interface{}(m.GetLastKeyAdded()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineViewValidationError{ - field: "LastKeyAdded", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Description - - return nil -} - -// MachineViewValidationError is the validation error returned by -// MachineView.Validate if the designated constraints aren't met. -type MachineViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineViewValidationError) ErrorName() string { return "MachineViewValidationError" } - -// Error satisfies the builtin error interface -func (e MachineViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineViewValidationError{} - -// Validate checks the field values on UpdateMachineRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateMachineRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return UpdateMachineRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetDescription()) > 500 { - return UpdateMachineRequestValidationError{ - field: "Description", - reason: "value length must be at most 500 runes", - } - } - - return nil -} - -// UpdateMachineRequestValidationError is the validation error returned by -// UpdateMachineRequest.Validate if the designated constraints aren't met. -type UpdateMachineRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateMachineRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateMachineRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateMachineRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateMachineRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateMachineRequestValidationError) ErrorName() string { - return "UpdateMachineRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateMachineRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateMachineRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateMachineRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateMachineRequestValidationError{} - -// Validate checks the field values on AddMachineKeyRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AddMachineKeyRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return AddMachineKeyRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - if _, ok := _AddMachineKeyRequest_Type_NotInLookup[m.GetType()]; ok { - return AddMachineKeyRequestValidationError{ - field: "Type", - reason: "value must not be in list [0]", - } - } - - if v, ok := interface{}(m.GetExpirationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddMachineKeyRequestValidationError{ - field: "ExpirationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// AddMachineKeyRequestValidationError is the validation error returned by -// AddMachineKeyRequest.Validate if the designated constraints aren't met. -type AddMachineKeyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddMachineKeyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddMachineKeyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddMachineKeyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddMachineKeyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddMachineKeyRequestValidationError) ErrorName() string { - return "AddMachineKeyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddMachineKeyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddMachineKeyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddMachineKeyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddMachineKeyRequestValidationError{} - -var _AddMachineKeyRequest_Type_NotInLookup = map[MachineKeyType]struct{}{ - 0: {}, -} - -// Validate checks the field values on AddMachineKeyResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AddMachineKeyResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddMachineKeyResponseValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for Type - - if v, ok := interface{}(m.GetExpirationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AddMachineKeyResponseValidationError{ - field: "ExpirationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for KeyDetails - - return nil -} - -// AddMachineKeyResponseValidationError is the validation error returned by -// AddMachineKeyResponse.Validate if the designated constraints aren't met. -type AddMachineKeyResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddMachineKeyResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddMachineKeyResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddMachineKeyResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddMachineKeyResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddMachineKeyResponseValidationError) ErrorName() string { - return "AddMachineKeyResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e AddMachineKeyResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddMachineKeyResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddMachineKeyResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddMachineKeyResponseValidationError{} - -// Validate checks the field values on MachineKeyIDRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MachineKeyIDRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return MachineKeyIDRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetKeyId()) < 1 { - return MachineKeyIDRequestValidationError{ - field: "KeyId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// MachineKeyIDRequestValidationError is the validation error returned by -// MachineKeyIDRequest.Validate if the designated constraints aren't met. -type MachineKeyIDRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineKeyIDRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineKeyIDRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineKeyIDRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineKeyIDRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineKeyIDRequestValidationError) ErrorName() string { - return "MachineKeyIDRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e MachineKeyIDRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineKeyIDRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineKeyIDRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineKeyIDRequestValidationError{} - -// Validate checks the field values on MachineKeyView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MachineKeyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Type - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetExpirationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeyViewValidationError{ - field: "ExpirationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// MachineKeyViewValidationError is the validation error returned by -// MachineKeyView.Validate if the designated constraints aren't met. -type MachineKeyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineKeyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineKeyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineKeyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineKeyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineKeyViewValidationError) ErrorName() string { return "MachineKeyViewValidationError" } - -// Error satisfies the builtin error interface -func (e MachineKeyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineKeyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineKeyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineKeyViewValidationError{} - -// Validate checks the field values on MachineKeySearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MachineKeySearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for Asc - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return MachineKeySearchRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// MachineKeySearchRequestValidationError is the validation error returned by -// MachineKeySearchRequest.Validate if the designated constraints aren't met. -type MachineKeySearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineKeySearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineKeySearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineKeySearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineKeySearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineKeySearchRequestValidationError) ErrorName() string { - return "MachineKeySearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e MachineKeySearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineKeySearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineKeySearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineKeySearchRequestValidationError{} - -// Validate checks the field values on MachineKeySearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MachineKeySearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeySearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return MachineKeySearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// MachineKeySearchResponseValidationError is the validation error returned by -// MachineKeySearchResponse.Validate if the designated constraints aren't met. -type MachineKeySearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MachineKeySearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MachineKeySearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MachineKeySearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MachineKeySearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MachineKeySearchResponseValidationError) ErrorName() string { - return "MachineKeySearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e MachineKeySearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMachineKeySearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MachineKeySearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MachineKeySearchResponseValidationError{} - -// Validate checks the field values on UserSearchRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for SortingColumn - - // no validation rules for Asc - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// UserSearchRequestValidationError is the validation error returned by -// UserSearchRequest.Validate if the designated constraints aren't met. -type UserSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserSearchRequestValidationError) ErrorName() string { - return "UserSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UserSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserSearchRequestValidationError{} - -// Validate checks the field values on UserSearchQuery with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _UserSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return UserSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// UserSearchQueryValidationError is the validation error returned by -// UserSearchQuery.Validate if the designated constraints aren't met. -type UserSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserSearchQueryValidationError) ErrorName() string { return "UserSearchQueryValidationError" } - -// Error satisfies the builtin error interface -func (e UserSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserSearchQueryValidationError{} - -var _UserSearchQuery_Key_NotInLookup = map[UserSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on UserSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserSearchResponseValidationError is the validation error returned by -// UserSearchResponse.Validate if the designated constraints aren't met. -type UserSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserSearchResponseValidationError) ErrorName() string { - return "UserSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UserSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserSearchResponseValidationError{} - -// Validate checks the field values on UserProfile with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserProfile) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for NickName - - // no validation rules for DisplayName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserProfileValidationError is the validation error returned by -// UserProfile.Validate if the designated constraints aren't met. -type UserProfileValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserProfileValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserProfileValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserProfileValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserProfileValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserProfileValidationError) ErrorName() string { return "UserProfileValidationError" } - -// Error satisfies the builtin error interface -func (e UserProfileValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserProfile.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserProfileValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserProfileValidationError{} - -// Validate checks the field values on UserProfileView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserProfileView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for NickName - - // no validation rules for DisplayName - - // no validation rules for PreferredLanguage - - // no validation rules for Gender - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserProfileViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for PreferredLoginName - - return nil -} - -// UserProfileViewValidationError is the validation error returned by -// UserProfileView.Validate if the designated constraints aren't met. -type UserProfileViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserProfileViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserProfileViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserProfileViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserProfileViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserProfileViewValidationError) ErrorName() string { return "UserProfileViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserProfileViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserProfileView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserProfileViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserProfileViewValidationError{} - -// Validate checks the field values on UpdateUserProfileRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserProfileRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - if l := utf8.RuneCountInString(m.GetFirstName()); l < 1 || l > 200 { - return UpdateUserProfileRequestValidationError{ - field: "FirstName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetLastName()); l < 1 || l > 200 { - return UpdateUserProfileRequestValidationError{ - field: "LastName", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if utf8.RuneCountInString(m.GetNickName()) > 200 { - return UpdateUserProfileRequestValidationError{ - field: "NickName", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPreferredLanguage()) > 200 { - return UpdateUserProfileRequestValidationError{ - field: "PreferredLanguage", - reason: "value length must be at most 200 runes", - } - } - - // no validation rules for Gender - - return nil -} - -// UpdateUserProfileRequestValidationError is the validation error returned by -// UpdateUserProfileRequest.Validate if the designated constraints aren't met. -type UpdateUserProfileRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserProfileRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserProfileRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserProfileRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserProfileRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserProfileRequestValidationError) ErrorName() string { - return "UpdateUserProfileRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserProfileRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserProfileRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserProfileRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserProfileRequestValidationError{} - -// Validate checks the field values on UpdateUserUserNameRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserUserNameRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - if !_UpdateUserUserNameRequest_UserName_Pattern.MatchString(m.GetUserName()) { - return UpdateUserUserNameRequestValidationError{ - field: "UserName", - reason: "value does not match regex pattern \"^[^[:space:]]{1,200}$\"", - } - } - - return nil -} - -// UpdateUserUserNameRequestValidationError is the validation error returned by -// UpdateUserUserNameRequest.Validate if the designated constraints aren't met. -type UpdateUserUserNameRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserUserNameRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserUserNameRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserUserNameRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserUserNameRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserUserNameRequestValidationError) ErrorName() string { - return "UpdateUserUserNameRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserUserNameRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserUserNameRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserUserNameRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserUserNameRequestValidationError{} - -var _UpdateUserUserNameRequest_UserName_Pattern = regexp.MustCompile("^[^[:space:]]{1,200}$") - -// Validate checks the field values on UserEmail with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserEmail) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserEmailValidationError is the validation error returned by -// UserEmail.Validate if the designated constraints aren't met. -type UserEmailValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserEmailValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserEmailValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserEmailValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserEmailValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserEmailValidationError) ErrorName() string { return "UserEmailValidationError" } - -// Error satisfies the builtin error interface -func (e UserEmailValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserEmail.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserEmailValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserEmailValidationError{} - -// Validate checks the field values on UserEmailView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserEmailView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Email - - // no validation rules for IsEmailVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserEmailViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserEmailViewValidationError is the validation error returned by -// UserEmailView.Validate if the designated constraints aren't met. -type UserEmailViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserEmailViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserEmailViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserEmailViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserEmailViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserEmailViewValidationError) ErrorName() string { return "UserEmailViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserEmailViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserEmailView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserEmailViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserEmailViewValidationError{} - -// Validate checks the field values on UpdateUserEmailRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserEmailRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - if l := utf8.RuneCountInString(m.GetEmail()); l < 1 || l > 200 { - return UpdateUserEmailRequestValidationError{ - field: "Email", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for IsEmailVerified - - return nil -} - -// UpdateUserEmailRequestValidationError is the validation error returned by -// UpdateUserEmailRequest.Validate if the designated constraints aren't met. -type UpdateUserEmailRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserEmailRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserEmailRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserEmailRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserEmailRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserEmailRequestValidationError) ErrorName() string { - return "UpdateUserEmailRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserEmailRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserEmailRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserEmailRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserEmailRequestValidationError{} - -// Validate checks the field values on UserPhone with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserPhone) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserPhoneValidationError is the validation error returned by -// UserPhone.Validate if the designated constraints aren't met. -type UserPhoneValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserPhoneValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserPhoneValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserPhoneValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserPhoneValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserPhoneValidationError) ErrorName() string { return "UserPhoneValidationError" } - -// Error satisfies the builtin error interface -func (e UserPhoneValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserPhone.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserPhoneValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserPhoneValidationError{} - -// Validate checks the field values on UserPhoneView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserPhoneView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Phone - - // no validation rules for IsPhoneVerified - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserPhoneViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserPhoneViewValidationError is the validation error returned by -// UserPhoneView.Validate if the designated constraints aren't met. -type UserPhoneViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserPhoneViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserPhoneViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserPhoneViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserPhoneViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserPhoneViewValidationError) ErrorName() string { return "UserPhoneViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserPhoneViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserPhoneView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserPhoneViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserPhoneViewValidationError{} - -// Validate checks the field values on UpdateUserPhoneRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserPhoneRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return UpdateUserPhoneRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetPhone()); l < 1 || l > 20 { - return UpdateUserPhoneRequestValidationError{ - field: "Phone", - reason: "value length must be between 1 and 20 runes, inclusive", - } - } - - // no validation rules for IsPhoneVerified - - return nil -} - -// UpdateUserPhoneRequestValidationError is the validation error returned by -// UpdateUserPhoneRequest.Validate if the designated constraints aren't met. -type UpdateUserPhoneRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserPhoneRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserPhoneRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserPhoneRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserPhoneRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserPhoneRequestValidationError) ErrorName() string { - return "UpdateUserPhoneRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserPhoneRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserPhoneRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserPhoneRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserPhoneRequestValidationError{} - -// Validate checks the field values on UserAddress with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserAddress) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserAddressValidationError is the validation error returned by -// UserAddress.Validate if the designated constraints aren't met. -type UserAddressValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserAddressValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserAddressValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserAddressValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserAddressValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserAddressValidationError) ErrorName() string { return "UserAddressValidationError" } - -// Error satisfies the builtin error interface -func (e UserAddressValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserAddress.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserAddressValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserAddressValidationError{} - -// Validate checks the field values on UserAddressView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserAddressView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Country - - // no validation rules for Locality - - // no validation rules for PostalCode - - // no validation rules for Region - - // no validation rules for StreetAddress - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserAddressViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserAddressViewValidationError is the validation error returned by -// UserAddressView.Validate if the designated constraints aren't met. -type UserAddressViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserAddressViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserAddressViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserAddressViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserAddressViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserAddressViewValidationError) ErrorName() string { return "UserAddressViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserAddressViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserAddressView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserAddressViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserAddressViewValidationError{} - -// Validate checks the field values on UpdateUserAddressRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UpdateUserAddressRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return UpdateUserAddressRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetCountry()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "Country", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetLocality()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "Locality", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetPostalCode()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "PostalCode", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetRegion()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "Region", - reason: "value length must be at most 200 runes", - } - } - - if utf8.RuneCountInString(m.GetStreetAddress()) > 200 { - return UpdateUserAddressRequestValidationError{ - field: "StreetAddress", - reason: "value length must be at most 200 runes", - } - } - - return nil -} - -// UpdateUserAddressRequestValidationError is the validation error returned by -// UpdateUserAddressRequest.Validate if the designated constraints aren't met. -type UpdateUserAddressRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateUserAddressRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateUserAddressRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateUserAddressRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateUserAddressRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateUserAddressRequestValidationError) ErrorName() string { - return "UpdateUserAddressRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateUserAddressRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateUserAddressRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateUserAddressRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateUserAddressRequestValidationError{} - -// Validate checks the field values on UserMultiFactors with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserMultiFactors) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetMfas() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserMultiFactorsValidationError{ - field: fmt.Sprintf("Mfas[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// UserMultiFactorsValidationError is the validation error returned by -// UserMultiFactors.Validate if the designated constraints aren't met. -type UserMultiFactorsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserMultiFactorsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserMultiFactorsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserMultiFactorsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserMultiFactorsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserMultiFactorsValidationError) ErrorName() string { return "UserMultiFactorsValidationError" } - -// Error satisfies the builtin error interface -func (e UserMultiFactorsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserMultiFactors.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserMultiFactorsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserMultiFactorsValidationError{} - -// Validate checks the field values on UserMultiFactor with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserMultiFactor) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Type - - // no validation rules for State - - return nil -} - -// UserMultiFactorValidationError is the validation error returned by -// UserMultiFactor.Validate if the designated constraints aren't met. -type UserMultiFactorValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserMultiFactorValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserMultiFactorValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserMultiFactorValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserMultiFactorValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserMultiFactorValidationError) ErrorName() string { return "UserMultiFactorValidationError" } - -// Error satisfies the builtin error interface -func (e UserMultiFactorValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserMultiFactor.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserMultiFactorValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserMultiFactorValidationError{} - -// Validate checks the field values on PasswordRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *PasswordRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return PasswordRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetPassword()); l < 1 || l > 72 { - return PasswordRequestValidationError{ - field: "Password", - reason: "value length must be between 1 and 72 runes, inclusive", - } - } - - return nil -} - -// PasswordRequestValidationError is the validation error returned by -// PasswordRequest.Validate if the designated constraints aren't met. -type PasswordRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordRequestValidationError) ErrorName() string { return "PasswordRequestValidationError" } - -// Error satisfies the builtin error interface -func (e PasswordRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordRequestValidationError{} - -// Validate checks the field values on SetPasswordNotificationRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *SetPasswordNotificationRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return SetPasswordNotificationRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Type - - return nil -} - -// SetPasswordNotificationRequestValidationError is the validation error -// returned by SetPasswordNotificationRequest.Validate if the designated -// constraints aren't met. -type SetPasswordNotificationRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SetPasswordNotificationRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SetPasswordNotificationRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SetPasswordNotificationRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SetPasswordNotificationRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SetPasswordNotificationRequestValidationError) ErrorName() string { - return "SetPasswordNotificationRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e SetPasswordNotificationRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSetPasswordNotificationRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SetPasswordNotificationRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SetPasswordNotificationRequestValidationError{} - -// Validate checks the field values on InitialMailRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *InitialMailRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return InitialMailRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Email - - return nil -} - -// InitialMailRequestValidationError is the validation error returned by -// InitialMailRequest.Validate if the designated constraints aren't met. -type InitialMailRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e InitialMailRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e InitialMailRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e InitialMailRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e InitialMailRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e InitialMailRequestValidationError) ErrorName() string { - return "InitialMailRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e InitialMailRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sInitialMailRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = InitialMailRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = InitialMailRequestValidationError{} - -// Validate checks the field values on OrgIamPolicyView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgIamPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserLoginMustBeDomain - - // no validation rules for Default - - return nil -} - -// OrgIamPolicyViewValidationError is the validation error returned by -// OrgIamPolicyView.Validate if the designated constraints aren't met. -type OrgIamPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgIamPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgIamPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgIamPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgIamPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgIamPolicyViewValidationError) ErrorName() string { return "OrgIamPolicyViewValidationError" } - -// Error satisfies the builtin error interface -func (e OrgIamPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgIamPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgIamPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgIamPolicyViewValidationError{} - -// Validate checks the field values on OrgCreateRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OrgCreateRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return OrgCreateRequestValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// OrgCreateRequestValidationError is the validation error returned by -// OrgCreateRequest.Validate if the designated constraints aren't met. -type OrgCreateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgCreateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgCreateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgCreateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgCreateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgCreateRequestValidationError) ErrorName() string { return "OrgCreateRequestValidationError" } - -// Error satisfies the builtin error interface -func (e OrgCreateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgCreateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgCreateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgCreateRequestValidationError{} - -// Validate checks the field values on Org with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *Org) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Sequence - - return nil -} - -// OrgValidationError is the validation error returned by Org.Validate if the -// designated constraints aren't met. -type OrgValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgValidationError) ErrorName() string { return "OrgValidationError" } - -// Error satisfies the builtin error interface -func (e OrgValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrg.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgValidationError{} - -// Validate checks the field values on OrgView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *OrgView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Sequence - - return nil -} - -// OrgViewValidationError is the validation error returned by OrgView.Validate -// if the designated constraints aren't met. -type OrgViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgViewValidationError) ErrorName() string { return "OrgViewValidationError" } - -// Error satisfies the builtin error interface -func (e OrgViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgViewValidationError{} - -// Validate checks the field values on Domain with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Domain) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetDomain()) < 1 { - return DomainValidationError{ - field: "Domain", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// DomainValidationError is the validation error returned by Domain.Validate if -// the designated constraints aren't met. -type DomainValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DomainValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DomainValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DomainValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DomainValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DomainValidationError) ErrorName() string { return "DomainValidationError" } - -// Error satisfies the builtin error interface -func (e DomainValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDomain.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DomainValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DomainValidationError{} - -// Validate checks the field values on OrgDomain with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *OrgDomain) Validate() error { - if m == nil { - return nil - } - - // no validation rules for OrgId - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Domain - - // no validation rules for Verified - - // no validation rules for Primary - - // no validation rules for Sequence - - return nil -} - -// OrgDomainValidationError is the validation error returned by -// OrgDomain.Validate if the designated constraints aren't met. -type OrgDomainValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainValidationError) ErrorName() string { return "OrgDomainValidationError" } - -// Error satisfies the builtin error interface -func (e OrgDomainValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomain.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainValidationError{} - -// Validate checks the field values on OrgDomainView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OrgDomainView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for OrgId - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Domain - - // no validation rules for Verified - - // no validation rules for Primary - - // no validation rules for Sequence - - // no validation rules for ValidationType - - return nil -} - -// OrgDomainViewValidationError is the validation error returned by -// OrgDomainView.Validate if the designated constraints aren't met. -type OrgDomainViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainViewValidationError) ErrorName() string { return "OrgDomainViewValidationError" } - -// Error satisfies the builtin error interface -func (e OrgDomainViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomainView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainViewValidationError{} - -// Validate checks the field values on AddOrgDomainRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AddOrgDomainRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetDomain()); l < 1 || l > 200 { - return AddOrgDomainRequestValidationError{ - field: "Domain", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// AddOrgDomainRequestValidationError is the validation error returned by -// AddOrgDomainRequest.Validate if the designated constraints aren't met. -type AddOrgDomainRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddOrgDomainRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddOrgDomainRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddOrgDomainRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddOrgDomainRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddOrgDomainRequestValidationError) ErrorName() string { - return "AddOrgDomainRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddOrgDomainRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddOrgDomainRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddOrgDomainRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddOrgDomainRequestValidationError{} - -// Validate checks the field values on OrgDomainValidationRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgDomainValidationRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetDomain()); l < 1 || l > 200 { - return OrgDomainValidationRequestValidationError{ - field: "Domain", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if _, ok := _OrgDomainValidationRequest_Type_NotInLookup[m.GetType()]; ok { - return OrgDomainValidationRequestValidationError{ - field: "Type", - reason: "value must not be in list [0]", - } - } - - return nil -} - -// OrgDomainValidationRequestValidationError is the validation error returned -// by OrgDomainValidationRequest.Validate if the designated constraints aren't met. -type OrgDomainValidationRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainValidationRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainValidationRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainValidationRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainValidationRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainValidationRequestValidationError) ErrorName() string { - return "OrgDomainValidationRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgDomainValidationRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomainValidationRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainValidationRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainValidationRequestValidationError{} - -var _OrgDomainValidationRequest_Type_NotInLookup = map[OrgDomainValidationType]struct{}{ - 0: {}, -} - -// Validate checks the field values on OrgDomainValidationResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgDomainValidationResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Token - - // no validation rules for Url - - return nil -} - -// OrgDomainValidationResponseValidationError is the validation error returned -// by OrgDomainValidationResponse.Validate if the designated constraints -// aren't met. -type OrgDomainValidationResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainValidationResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainValidationResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainValidationResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainValidationResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainValidationResponseValidationError) ErrorName() string { - return "OrgDomainValidationResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgDomainValidationResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomainValidationResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainValidationResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainValidationResponseValidationError{} - -// Validate checks the field values on ValidateOrgDomainRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ValidateOrgDomainRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetDomain()); l < 1 || l > 200 { - return ValidateOrgDomainRequestValidationError{ - field: "Domain", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// ValidateOrgDomainRequestValidationError is the validation error returned by -// ValidateOrgDomainRequest.Validate if the designated constraints aren't met. -type ValidateOrgDomainRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ValidateOrgDomainRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ValidateOrgDomainRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ValidateOrgDomainRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ValidateOrgDomainRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ValidateOrgDomainRequestValidationError) ErrorName() string { - return "ValidateOrgDomainRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ValidateOrgDomainRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sValidateOrgDomainRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ValidateOrgDomainRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ValidateOrgDomainRequestValidationError{} - -// Validate checks the field values on PrimaryOrgDomainRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PrimaryOrgDomainRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetDomain()) < 1 { - return PrimaryOrgDomainRequestValidationError{ - field: "Domain", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// PrimaryOrgDomainRequestValidationError is the validation error returned by -// PrimaryOrgDomainRequest.Validate if the designated constraints aren't met. -type PrimaryOrgDomainRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PrimaryOrgDomainRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PrimaryOrgDomainRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PrimaryOrgDomainRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PrimaryOrgDomainRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PrimaryOrgDomainRequestValidationError) ErrorName() string { - return "PrimaryOrgDomainRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e PrimaryOrgDomainRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPrimaryOrgDomainRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PrimaryOrgDomainRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PrimaryOrgDomainRequestValidationError{} - -// Validate checks the field values on RemoveOrgDomainRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *RemoveOrgDomainRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetDomain()) < 1 { - return RemoveOrgDomainRequestValidationError{ - field: "Domain", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// RemoveOrgDomainRequestValidationError is the validation error returned by -// RemoveOrgDomainRequest.Validate if the designated constraints aren't met. -type RemoveOrgDomainRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RemoveOrgDomainRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RemoveOrgDomainRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RemoveOrgDomainRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RemoveOrgDomainRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RemoveOrgDomainRequestValidationError) ErrorName() string { - return "RemoveOrgDomainRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e RemoveOrgDomainRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRemoveOrgDomainRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RemoveOrgDomainRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RemoveOrgDomainRequestValidationError{} - -// Validate checks the field values on OrgDomainSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgDomainSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgDomainSearchResponseValidationError is the validation error returned by -// OrgDomainSearchResponse.Validate if the designated constraints aren't met. -type OrgDomainSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainSearchResponseValidationError) ErrorName() string { - return "OrgDomainSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgDomainSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomainSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainSearchResponseValidationError{} - -// Validate checks the field values on OrgDomainSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgDomainSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgDomainSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// OrgDomainSearchRequestValidationError is the validation error returned by -// OrgDomainSearchRequest.Validate if the designated constraints aren't met. -type OrgDomainSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainSearchRequestValidationError) ErrorName() string { - return "OrgDomainSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgDomainSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomainSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainSearchRequestValidationError{} - -// Validate checks the field values on OrgDomainSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgDomainSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _OrgDomainSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return OrgDomainSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// OrgDomainSearchQueryValidationError is the validation error returned by -// OrgDomainSearchQuery.Validate if the designated constraints aren't met. -type OrgDomainSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgDomainSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgDomainSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgDomainSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgDomainSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgDomainSearchQueryValidationError) ErrorName() string { - return "OrgDomainSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgDomainSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgDomainSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgDomainSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgDomainSearchQueryValidationError{} - -var _OrgDomainSearchQuery_Key_NotInLookup = map[OrgDomainSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on OrgMemberRoles with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OrgMemberRoles) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// OrgMemberRolesValidationError is the validation error returned by -// OrgMemberRoles.Validate if the designated constraints aren't met. -type OrgMemberRolesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgMemberRolesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgMemberRolesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgMemberRolesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgMemberRolesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgMemberRolesValidationError) ErrorName() string { return "OrgMemberRolesValidationError" } - -// Error satisfies the builtin error interface -func (e OrgMemberRolesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgMemberRoles.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgMemberRolesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgMemberRolesValidationError{} - -// Validate checks the field values on OrgMember with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *OrgMember) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - return nil -} - -// OrgMemberValidationError is the validation error returned by -// OrgMember.Validate if the designated constraints aren't met. -type OrgMemberValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgMemberValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgMemberValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgMemberValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgMemberValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgMemberValidationError) ErrorName() string { return "OrgMemberValidationError" } - -// Error satisfies the builtin error interface -func (e OrgMemberValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgMember.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgMemberValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgMemberValidationError{} - -// Validate checks the field values on AddOrgMemberRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *AddOrgMemberRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return AddOrgMemberRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// AddOrgMemberRequestValidationError is the validation error returned by -// AddOrgMemberRequest.Validate if the designated constraints aren't met. -type AddOrgMemberRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AddOrgMemberRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AddOrgMemberRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AddOrgMemberRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AddOrgMemberRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AddOrgMemberRequestValidationError) ErrorName() string { - return "AddOrgMemberRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e AddOrgMemberRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAddOrgMemberRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AddOrgMemberRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AddOrgMemberRequestValidationError{} - -// Validate checks the field values on ChangeOrgMemberRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ChangeOrgMemberRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ChangeOrgMemberRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ChangeOrgMemberRequestValidationError is the validation error returned by -// ChangeOrgMemberRequest.Validate if the designated constraints aren't met. -type ChangeOrgMemberRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeOrgMemberRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeOrgMemberRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeOrgMemberRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeOrgMemberRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeOrgMemberRequestValidationError) ErrorName() string { - return "ChangeOrgMemberRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ChangeOrgMemberRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChangeOrgMemberRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeOrgMemberRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeOrgMemberRequestValidationError{} - -// Validate checks the field values on RemoveOrgMemberRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *RemoveOrgMemberRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return RemoveOrgMemberRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// RemoveOrgMemberRequestValidationError is the validation error returned by -// RemoveOrgMemberRequest.Validate if the designated constraints aren't met. -type RemoveOrgMemberRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e RemoveOrgMemberRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e RemoveOrgMemberRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e RemoveOrgMemberRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e RemoveOrgMemberRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e RemoveOrgMemberRequestValidationError) ErrorName() string { - return "RemoveOrgMemberRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e RemoveOrgMemberRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sRemoveOrgMemberRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = RemoveOrgMemberRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = RemoveOrgMemberRequestValidationError{} - -// Validate checks the field values on OrgMemberSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgMemberSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// OrgMemberSearchResponseValidationError is the validation error returned by -// OrgMemberSearchResponse.Validate if the designated constraints aren't met. -type OrgMemberSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgMemberSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgMemberSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgMemberSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgMemberSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgMemberSearchResponseValidationError) ErrorName() string { - return "OrgMemberSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgMemberSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgMemberSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgMemberSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgMemberSearchResponseValidationError{} - -// Validate checks the field values on OrgMemberView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OrgMemberView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for UserName - - // no validation rules for Email - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for DisplayName - - return nil -} - -// OrgMemberViewValidationError is the validation error returned by -// OrgMemberView.Validate if the designated constraints aren't met. -type OrgMemberViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgMemberViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgMemberViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgMemberViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgMemberViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgMemberViewValidationError) ErrorName() string { return "OrgMemberViewValidationError" } - -// Error satisfies the builtin error interface -func (e OrgMemberViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgMemberView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgMemberViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgMemberViewValidationError{} - -// Validate checks the field values on OrgMemberSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgMemberSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OrgMemberSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// OrgMemberSearchRequestValidationError is the validation error returned by -// OrgMemberSearchRequest.Validate if the designated constraints aren't met. -type OrgMemberSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgMemberSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgMemberSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgMemberSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgMemberSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgMemberSearchRequestValidationError) ErrorName() string { - return "OrgMemberSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgMemberSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgMemberSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgMemberSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgMemberSearchRequestValidationError{} - -// Validate checks the field values on OrgMemberSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OrgMemberSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _OrgMemberSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return OrgMemberSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// OrgMemberSearchQueryValidationError is the validation error returned by -// OrgMemberSearchQuery.Validate if the designated constraints aren't met. -type OrgMemberSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OrgMemberSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OrgMemberSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OrgMemberSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OrgMemberSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OrgMemberSearchQueryValidationError) ErrorName() string { - return "OrgMemberSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e OrgMemberSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOrgMemberSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OrgMemberSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OrgMemberSearchQueryValidationError{} - -var _OrgMemberSearchQuery_Key_NotInLookup = map[OrgMemberSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on ProjectCreateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectCreateRequest) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return ProjectCreateRequestValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for ProjectRoleAssertion - - // no validation rules for ProjectRoleCheck - - return nil -} - -// ProjectCreateRequestValidationError is the validation error returned by -// ProjectCreateRequest.Validate if the designated constraints aren't met. -type ProjectCreateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectCreateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectCreateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectCreateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectCreateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectCreateRequestValidationError) ErrorName() string { - return "ProjectCreateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectCreateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectCreateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectCreateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectCreateRequestValidationError{} - -// Validate checks the field values on ProjectUpdateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectUpdateRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectUpdateRequestValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return ProjectUpdateRequestValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for ProjectRoleAssertion - - // no validation rules for ProjectRoleCheck - - return nil -} - -// ProjectUpdateRequestValidationError is the validation error returned by -// ProjectUpdateRequest.Validate if the designated constraints aren't met. -type ProjectUpdateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectUpdateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectUpdateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectUpdateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectUpdateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectUpdateRequestValidationError) ErrorName() string { - return "ProjectUpdateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectUpdateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectUpdateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectUpdateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectUpdateRequestValidationError{} - -// Validate checks the field values on ProjectSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ProjectSearchResponseValidationError is the validation error returned by -// ProjectSearchResponse.Validate if the designated constraints aren't met. -type ProjectSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectSearchResponseValidationError) ErrorName() string { - return "ProjectSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectSearchResponseValidationError{} - -// Validate checks the field values on ProjectView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ProjectView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ProjectId - - // no validation rules for Name - - // no validation rules for State - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ResourceOwner - - // no validation rules for Sequence - - // no validation rules for ProjectRoleAssertion - - // no validation rules for ProjectRoleCheck - - return nil -} - -// ProjectViewValidationError is the validation error returned by -// ProjectView.Validate if the designated constraints aren't met. -type ProjectViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectViewValidationError) ErrorName() string { return "ProjectViewValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectViewValidationError{} - -// Validate checks the field values on ProjectSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectSearchRequestValidationError is the validation error returned by -// ProjectSearchRequest.Validate if the designated constraints aren't met. -type ProjectSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectSearchRequestValidationError) ErrorName() string { - return "ProjectSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectSearchRequestValidationError{} - -// Validate checks the field values on ProjectSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _ProjectSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return ProjectSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// ProjectSearchQueryValidationError is the validation error returned by -// ProjectSearchQuery.Validate if the designated constraints aren't met. -type ProjectSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectSearchQueryValidationError) ErrorName() string { - return "ProjectSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectSearchQueryValidationError{} - -var _ProjectSearchQuery_Key_NotInLookup = map[ProjectSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on Projects with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Projects) Validate() error { - if m == nil { - return nil - } - - for idx, item := range m.GetProjects() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectsValidationError{ - field: fmt.Sprintf("Projects[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectsValidationError is the validation error returned by -// Projects.Validate if the designated constraints aren't met. -type ProjectsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectsValidationError) ErrorName() string { return "ProjectsValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjects.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectsValidationError{} - -// Validate checks the field values on Project with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *Project) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for Name - - // no validation rules for State - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for ProjectRoleAssertion - - // no validation rules for ProjectRoleCheck - - return nil -} - -// ProjectValidationError is the validation error returned by Project.Validate -// if the designated constraints aren't met. -type ProjectValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectValidationError) ErrorName() string { return "ProjectValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProject.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectValidationError{} - -// Validate checks the field values on ProjectMemberRoles with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectMemberRoles) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// ProjectMemberRolesValidationError is the validation error returned by -// ProjectMemberRoles.Validate if the designated constraints aren't met. -type ProjectMemberRolesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberRolesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberRolesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberRolesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberRolesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberRolesValidationError) ErrorName() string { - return "ProjectMemberRolesValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberRolesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberRoles.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberRolesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberRolesValidationError{} - -// Validate checks the field values on ProjectMember with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ProjectMember) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - return nil -} - -// ProjectMemberValidationError is the validation error returned by -// ProjectMember.Validate if the designated constraints aren't met. -type ProjectMemberValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberValidationError) ErrorName() string { return "ProjectMemberValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectMemberValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMember.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberValidationError{} - -// Validate checks the field values on ProjectMemberAdd with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ProjectMemberAdd) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectMemberAddValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ProjectMemberAddValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectMemberAddValidationError is the validation error returned by -// ProjectMemberAdd.Validate if the designated constraints aren't met. -type ProjectMemberAddValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberAddValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberAddValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberAddValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberAddValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberAddValidationError) ErrorName() string { return "ProjectMemberAddValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectMemberAddValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberAdd.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberAddValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberAddValidationError{} - -// Validate checks the field values on ProjectMemberChange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectMemberChange) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectMemberChangeValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ProjectMemberChangeValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectMemberChangeValidationError is the validation error returned by -// ProjectMemberChange.Validate if the designated constraints aren't met. -type ProjectMemberChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberChangeValidationError) ErrorName() string { - return "ProjectMemberChangeValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberChangeValidationError{} - -// Validate checks the field values on ProjectMemberRemove with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectMemberRemove) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectMemberRemoveValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ProjectMemberRemoveValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectMemberRemoveValidationError is the validation error returned by -// ProjectMemberRemove.Validate if the designated constraints aren't met. -type ProjectMemberRemoveValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberRemoveValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberRemoveValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberRemoveValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberRemoveValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberRemoveValidationError) ErrorName() string { - return "ProjectMemberRemoveValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberRemoveValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberRemove.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberRemoveValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberRemoveValidationError{} - -// Validate checks the field values on ProjectRoleAdd with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ProjectRoleAdd) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectRoleAddValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Key - - // no validation rules for DisplayName - - // no validation rules for Group - - return nil -} - -// ProjectRoleAddValidationError is the validation error returned by -// ProjectRoleAdd.Validate if the designated constraints aren't met. -type ProjectRoleAddValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleAddValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleAddValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleAddValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleAddValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleAddValidationError) ErrorName() string { return "ProjectRoleAddValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectRoleAddValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleAdd.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleAddValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleAddValidationError{} - -// Validate checks the field values on ProjectRoleAddBulk with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectRoleAddBulk) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectRoleAddBulkValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - for idx, item := range m.GetProjectRoles() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleAddBulkValidationError{ - field: fmt.Sprintf("ProjectRoles[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectRoleAddBulkValidationError is the validation error returned by -// ProjectRoleAddBulk.Validate if the designated constraints aren't met. -type ProjectRoleAddBulkValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleAddBulkValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleAddBulkValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleAddBulkValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleAddBulkValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleAddBulkValidationError) ErrorName() string { - return "ProjectRoleAddBulkValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectRoleAddBulkValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleAddBulk.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleAddBulkValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleAddBulkValidationError{} - -// Validate checks the field values on ProjectRoleChange with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ProjectRoleChange) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectRoleChangeValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetKey()) < 1 { - return ProjectRoleChangeValidationError{ - field: "Key", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for DisplayName - - // no validation rules for Group - - return nil -} - -// ProjectRoleChangeValidationError is the validation error returned by -// ProjectRoleChange.Validate if the designated constraints aren't met. -type ProjectRoleChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleChangeValidationError) ErrorName() string { - return "ProjectRoleChangeValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectRoleChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleChangeValidationError{} - -// Validate checks the field values on ProjectRole with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ProjectRole) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ProjectId - - // no validation rules for Key - - // no validation rules for DisplayName - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Group - - // no validation rules for Sequence - - return nil -} - -// ProjectRoleValidationError is the validation error returned by -// ProjectRole.Validate if the designated constraints aren't met. -type ProjectRoleValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleValidationError) ErrorName() string { return "ProjectRoleValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectRoleValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRole.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleValidationError{} - -// Validate checks the field values on ProjectRoleView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ProjectRoleView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ProjectId - - // no validation rules for Key - - // no validation rules for DisplayName - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Group - - // no validation rules for Sequence - - return nil -} - -// ProjectRoleViewValidationError is the validation error returned by -// ProjectRoleView.Validate if the designated constraints aren't met. -type ProjectRoleViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleViewValidationError) ErrorName() string { return "ProjectRoleViewValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectRoleViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleViewValidationError{} - -// Validate checks the field values on ProjectRoleRemove with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ProjectRoleRemove) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectRoleRemoveValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetKey()) < 1 { - return ProjectRoleRemoveValidationError{ - field: "Key", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectRoleRemoveValidationError is the validation error returned by -// ProjectRoleRemove.Validate if the designated constraints aren't met. -type ProjectRoleRemoveValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleRemoveValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleRemoveValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleRemoveValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleRemoveValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleRemoveValidationError) ErrorName() string { - return "ProjectRoleRemoveValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectRoleRemoveValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleRemove.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleRemoveValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleRemoveValidationError{} - -// Validate checks the field values on ProjectRoleSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectRoleSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ProjectRoleSearchResponseValidationError is the validation error returned by -// ProjectRoleSearchResponse.Validate if the designated constraints aren't met. -type ProjectRoleSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleSearchResponseValidationError) ErrorName() string { - return "ProjectRoleSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectRoleSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleSearchResponseValidationError{} - -// Validate checks the field values on ProjectRoleSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectRoleSearchRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectRoleSearchRequestValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectRoleSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectRoleSearchRequestValidationError is the validation error returned by -// ProjectRoleSearchRequest.Validate if the designated constraints aren't met. -type ProjectRoleSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleSearchRequestValidationError) ErrorName() string { - return "ProjectRoleSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectRoleSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleSearchRequestValidationError{} - -// Validate checks the field values on ProjectRoleSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectRoleSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _ProjectRoleSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return ProjectRoleSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// ProjectRoleSearchQueryValidationError is the validation error returned by -// ProjectRoleSearchQuery.Validate if the designated constraints aren't met. -type ProjectRoleSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectRoleSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectRoleSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectRoleSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectRoleSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectRoleSearchQueryValidationError) ErrorName() string { - return "ProjectRoleSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectRoleSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectRoleSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectRoleSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectRoleSearchQueryValidationError{} - -var _ProjectRoleSearchQuery_Key_NotInLookup = map[ProjectRoleSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on ProjectMemberView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ProjectMemberView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for UserName - - // no validation rules for Email - - // no validation rules for FirstName - - // no validation rules for LastName - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for DisplayName - - return nil -} - -// ProjectMemberViewValidationError is the validation error returned by -// ProjectMemberView.Validate if the designated constraints aren't met. -type ProjectMemberViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberViewValidationError) ErrorName() string { - return "ProjectMemberViewValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberViewValidationError{} - -// Validate checks the field values on ProjectMemberSearchResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectMemberSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ProjectMemberSearchResponseValidationError is the validation error returned -// by ProjectMemberSearchResponse.Validate if the designated constraints -// aren't met. -type ProjectMemberSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberSearchResponseValidationError) ErrorName() string { - return "ProjectMemberSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberSearchResponseValidationError{} - -// Validate checks the field values on ProjectMemberSearchRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectMemberSearchRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectMemberSearchRequestValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectMemberSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectMemberSearchRequestValidationError is the validation error returned -// by ProjectMemberSearchRequest.Validate if the designated constraints aren't met. -type ProjectMemberSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberSearchRequestValidationError) ErrorName() string { - return "ProjectMemberSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberSearchRequestValidationError{} - -// Validate checks the field values on ProjectMemberSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectMemberSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _ProjectMemberSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return ProjectMemberSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// ProjectMemberSearchQueryValidationError is the validation error returned by -// ProjectMemberSearchQuery.Validate if the designated constraints aren't met. -type ProjectMemberSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectMemberSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectMemberSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectMemberSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectMemberSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectMemberSearchQueryValidationError) ErrorName() string { - return "ProjectMemberSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectMemberSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectMemberSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectMemberSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectMemberSearchQueryValidationError{} - -var _ProjectMemberSearchQuery_Key_NotInLookup = map[ProjectMemberSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on Application with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *Application) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Sequence - - switch m.AppConfig.(type) { - - case *Application_OidcConfig: - - if v, ok := interface{}(m.GetOidcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationValidationError{ - field: "OidcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ApplicationValidationError is the validation error returned by -// Application.Validate if the designated constraints aren't met. -type ApplicationValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationValidationError) ErrorName() string { return "ApplicationValidationError" } - -// Error satisfies the builtin error interface -func (e ApplicationValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplication.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationValidationError{} - -// Validate checks the field values on ApplicationUpdate with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ApplicationUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ApplicationUpdateValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ApplicationUpdateValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return ApplicationUpdateValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - return nil -} - -// ApplicationUpdateValidationError is the validation error returned by -// ApplicationUpdate.Validate if the designated constraints aren't met. -type ApplicationUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationUpdateValidationError) ErrorName() string { - return "ApplicationUpdateValidationError" -} - -// Error satisfies the builtin error interface -func (e ApplicationUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplicationUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationUpdateValidationError{} - -// Validate checks the field values on OIDCConfig with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *OIDCConfig) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ApplicationType - - // no validation rules for ClientId - - // no validation rules for ClientSecret - - // no validation rules for AuthMethodType - - // no validation rules for Version - - // no validation rules for NoneCompliant - - for idx, item := range m.GetComplianceProblems() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return OIDCConfigValidationError{ - field: fmt.Sprintf("ComplianceProblems[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for DevMode - - // no validation rules for AccessTokenType - - // no validation rules for AccessTokenRoleAssertion - - // no validation rules for IdTokenRoleAssertion - - return nil -} - -// OIDCConfigValidationError is the validation error returned by -// OIDCConfig.Validate if the designated constraints aren't met. -type OIDCConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OIDCConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OIDCConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OIDCConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OIDCConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OIDCConfigValidationError) ErrorName() string { return "OIDCConfigValidationError" } - -// Error satisfies the builtin error interface -func (e OIDCConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOIDCConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OIDCConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OIDCConfigValidationError{} - -// Validate checks the field values on OIDCApplicationCreate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OIDCApplicationCreate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return OIDCApplicationCreateValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return OIDCApplicationCreateValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for ApplicationType - - // no validation rules for AuthMethodType - - // no validation rules for Version - - // no validation rules for DevMode - - // no validation rules for AccessTokenType - - // no validation rules for AccessTokenRoleAssertion - - // no validation rules for IdTokenRoleAssertion - - return nil -} - -// OIDCApplicationCreateValidationError is the validation error returned by -// OIDCApplicationCreate.Validate if the designated constraints aren't met. -type OIDCApplicationCreateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OIDCApplicationCreateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OIDCApplicationCreateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OIDCApplicationCreateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OIDCApplicationCreateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OIDCApplicationCreateValidationError) ErrorName() string { - return "OIDCApplicationCreateValidationError" -} - -// Error satisfies the builtin error interface -func (e OIDCApplicationCreateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOIDCApplicationCreate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OIDCApplicationCreateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OIDCApplicationCreateValidationError{} - -// Validate checks the field values on OIDCConfigUpdate with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OIDCConfigUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return OIDCConfigUpdateValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetApplicationId()) < 1 { - return OIDCConfigUpdateValidationError{ - field: "ApplicationId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for ApplicationType - - // no validation rules for AuthMethodType - - // no validation rules for DevMode - - // no validation rules for AccessTokenType - - // no validation rules for AccessTokenRoleAssertion - - // no validation rules for IdTokenRoleAssertion - - return nil -} - -// OIDCConfigUpdateValidationError is the validation error returned by -// OIDCConfigUpdate.Validate if the designated constraints aren't met. -type OIDCConfigUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OIDCConfigUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OIDCConfigUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OIDCConfigUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OIDCConfigUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OIDCConfigUpdateValidationError) ErrorName() string { return "OIDCConfigUpdateValidationError" } - -// Error satisfies the builtin error interface -func (e OIDCConfigUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOIDCConfigUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OIDCConfigUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OIDCConfigUpdateValidationError{} - -// Validate checks the field values on ClientSecret with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ClientSecret) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ClientSecret - - return nil -} - -// ClientSecretValidationError is the validation error returned by -// ClientSecret.Validate if the designated constraints aren't met. -type ClientSecretValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ClientSecretValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ClientSecretValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ClientSecretValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ClientSecretValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ClientSecretValidationError) ErrorName() string { return "ClientSecretValidationError" } - -// Error satisfies the builtin error interface -func (e ClientSecretValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sClientSecret.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ClientSecretValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ClientSecretValidationError{} - -// Validate checks the field values on ApplicationView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ApplicationView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for Sequence - - switch m.AppConfig.(type) { - - case *ApplicationView_OidcConfig: - - if v, ok := interface{}(m.GetOidcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationViewValidationError{ - field: "OidcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ApplicationViewValidationError is the validation error returned by -// ApplicationView.Validate if the designated constraints aren't met. -type ApplicationViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationViewValidationError) ErrorName() string { return "ApplicationViewValidationError" } - -// Error satisfies the builtin error interface -func (e ApplicationViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplicationView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationViewValidationError{} - -// Validate checks the field values on ApplicationSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ApplicationSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ApplicationSearchResponseValidationError is the validation error returned by -// ApplicationSearchResponse.Validate if the designated constraints aren't met. -type ApplicationSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationSearchResponseValidationError) ErrorName() string { - return "ApplicationSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ApplicationSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplicationSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationSearchResponseValidationError{} - -// Validate checks the field values on ApplicationSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ApplicationSearchRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ApplicationSearchRequestValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ApplicationSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ApplicationSearchRequestValidationError is the validation error returned by -// ApplicationSearchRequest.Validate if the designated constraints aren't met. -type ApplicationSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationSearchRequestValidationError) ErrorName() string { - return "ApplicationSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ApplicationSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplicationSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationSearchRequestValidationError{} - -// Validate checks the field values on ApplicationSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ApplicationSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _ApplicationSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return ApplicationSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// ApplicationSearchQueryValidationError is the validation error returned by -// ApplicationSearchQuery.Validate if the designated constraints aren't met. -type ApplicationSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ApplicationSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ApplicationSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ApplicationSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ApplicationSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ApplicationSearchQueryValidationError) ErrorName() string { - return "ApplicationSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e ApplicationSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sApplicationSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ApplicationSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ApplicationSearchQueryValidationError{} - -var _ApplicationSearchQuery_Key_NotInLookup = map[ApplicationSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on ProjectGrant with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ProjectGrant) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for ProjectId - - // no validation rules for GrantedOrgId - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - return nil -} - -// ProjectGrantValidationError is the validation error returned by -// ProjectGrant.Validate if the designated constraints aren't met. -type ProjectGrantValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantValidationError) ErrorName() string { return "ProjectGrantValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectGrantValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrant.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantValidationError{} - -// Validate checks the field values on ProjectGrantCreate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantCreate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantCreateValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetGrantedOrgId()) < 1 { - return ProjectGrantCreateValidationError{ - field: "GrantedOrgId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectGrantCreateValidationError is the validation error returned by -// ProjectGrantCreate.Validate if the designated constraints aren't met. -type ProjectGrantCreateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantCreateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantCreateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantCreateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantCreateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantCreateValidationError) ErrorName() string { - return "ProjectGrantCreateValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantCreateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantCreate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantCreateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantCreateValidationError{} - -// Validate checks the field values on ProjectGrantUpdate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantUpdateValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectGrantUpdateValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectGrantUpdateValidationError is the validation error returned by -// ProjectGrantUpdate.Validate if the designated constraints aren't met. -type ProjectGrantUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantUpdateValidationError) ErrorName() string { - return "ProjectGrantUpdateValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantUpdateValidationError{} - -// Validate checks the field values on ProjectGrantID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *ProjectGrantID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantIDValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return ProjectGrantIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectGrantIDValidationError is the validation error returned by -// ProjectGrantID.Validate if the designated constraints aren't met. -type ProjectGrantIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantIDValidationError) ErrorName() string { return "ProjectGrantIDValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectGrantIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantIDValidationError{} - -// Validate checks the field values on ProjectGrantView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ProjectGrantView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for ProjectId - - // no validation rules for GrantedOrgId - - // no validation rules for GrantedOrgName - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ProjectName - - // no validation rules for Sequence - - // no validation rules for ResourceOwner - - // no validation rules for ResourceOwnerName - - return nil -} - -// ProjectGrantViewValidationError is the validation error returned by -// ProjectGrantView.Validate if the designated constraints aren't met. -type ProjectGrantViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantViewValidationError) ErrorName() string { return "ProjectGrantViewValidationError" } - -// Error satisfies the builtin error interface -func (e ProjectGrantViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantViewValidationError{} - -// Validate checks the field values on ProjectGrantSearchResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ProjectGrantSearchResponseValidationError is the validation error returned -// by ProjectGrantSearchResponse.Validate if the designated constraints aren't met. -type ProjectGrantSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantSearchResponseValidationError) ErrorName() string { - return "ProjectGrantSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantSearchResponseValidationError{} - -// Validate checks the field values on GrantedProjectSearchRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *GrantedProjectSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GrantedProjectSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// GrantedProjectSearchRequestValidationError is the validation error returned -// by GrantedProjectSearchRequest.Validate if the designated constraints -// aren't met. -type GrantedProjectSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GrantedProjectSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GrantedProjectSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GrantedProjectSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GrantedProjectSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GrantedProjectSearchRequestValidationError) ErrorName() string { - return "GrantedProjectSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GrantedProjectSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGrantedProjectSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GrantedProjectSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GrantedProjectSearchRequestValidationError{} - -// Validate checks the field values on ProjectGrantSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantSearchRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantSearchRequestValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectGrantSearchRequestValidationError is the validation error returned by -// ProjectGrantSearchRequest.Validate if the designated constraints aren't met. -type ProjectGrantSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantSearchRequestValidationError) ErrorName() string { - return "ProjectGrantSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantSearchRequestValidationError{} - -// Validate checks the field values on ProjectGrantSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _ProjectGrantSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return ProjectGrantSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// ProjectGrantSearchQueryValidationError is the validation error returned by -// ProjectGrantSearchQuery.Validate if the designated constraints aren't met. -type ProjectGrantSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantSearchQueryValidationError) ErrorName() string { - return "ProjectGrantSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantSearchQueryValidationError{} - -var _ProjectGrantSearchQuery_Key_NotInLookup = map[ProjectGrantSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on ProjectGrantMemberRoles with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberRoles) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// ProjectGrantMemberRolesValidationError is the validation error returned by -// ProjectGrantMemberRoles.Validate if the designated constraints aren't met. -type ProjectGrantMemberRolesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberRolesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberRolesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberRolesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberRolesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberRolesValidationError) ErrorName() string { - return "ProjectGrantMemberRolesValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberRolesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberRoles.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberRolesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberRolesValidationError{} - -// Validate checks the field values on ProjectGrantMember with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMember) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - return nil -} - -// ProjectGrantMemberValidationError is the validation error returned by -// ProjectGrantMember.Validate if the designated constraints aren't met. -type ProjectGrantMemberValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberValidationError) ErrorName() string { - return "ProjectGrantMemberValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMember.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberValidationError{} - -// Validate checks the field values on ProjectGrantMemberAdd with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberAdd) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantMemberAddValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetGrantId()) < 1 { - return ProjectGrantMemberAddValidationError{ - field: "GrantId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ProjectGrantMemberAddValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectGrantMemberAddValidationError is the validation error returned by -// ProjectGrantMemberAdd.Validate if the designated constraints aren't met. -type ProjectGrantMemberAddValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberAddValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberAddValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberAddValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberAddValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberAddValidationError) ErrorName() string { - return "ProjectGrantMemberAddValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberAddValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberAdd.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberAddValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberAddValidationError{} - -// Validate checks the field values on ProjectGrantMemberChange with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberChange) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantMemberChangeValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetGrantId()) < 1 { - return ProjectGrantMemberChangeValidationError{ - field: "GrantId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ProjectGrantMemberChangeValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectGrantMemberChangeValidationError is the validation error returned by -// ProjectGrantMemberChange.Validate if the designated constraints aren't met. -type ProjectGrantMemberChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberChangeValidationError) ErrorName() string { - return "ProjectGrantMemberChangeValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberChangeValidationError{} - -// Validate checks the field values on ProjectGrantMemberRemove with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberRemove) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantMemberRemoveValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetGrantId()) < 1 { - return ProjectGrantMemberRemoveValidationError{ - field: "GrantId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return ProjectGrantMemberRemoveValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// ProjectGrantMemberRemoveValidationError is the validation error returned by -// ProjectGrantMemberRemove.Validate if the designated constraints aren't met. -type ProjectGrantMemberRemoveValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberRemoveValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberRemoveValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberRemoveValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberRemoveValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberRemoveValidationError) ErrorName() string { - return "ProjectGrantMemberRemoveValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberRemoveValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberRemove.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberRemoveValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberRemoveValidationError{} - -// Validate checks the field values on ProjectGrantMemberView with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for UserName - - // no validation rules for Email - - // no validation rules for FirstName - - // no validation rules for LastName - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for DisplayName - - return nil -} - -// ProjectGrantMemberViewValidationError is the validation error returned by -// ProjectGrantMemberView.Validate if the designated constraints aren't met. -type ProjectGrantMemberViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberViewValidationError) ErrorName() string { - return "ProjectGrantMemberViewValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberViewValidationError{} - -// Validate checks the field values on ProjectGrantMemberSearchResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, an error is returned. -func (m *ProjectGrantMemberSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ProjectGrantMemberSearchResponseValidationError is the validation error -// returned by ProjectGrantMemberSearchResponse.Validate if the designated -// constraints aren't met. -type ProjectGrantMemberSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberSearchResponseValidationError) ErrorName() string { - return "ProjectGrantMemberSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberSearchResponseValidationError{} - -// Validate checks the field values on ProjectGrantMemberSearchRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberSearchRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return ProjectGrantMemberSearchRequestValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetGrantId()) < 1 { - return ProjectGrantMemberSearchRequestValidationError{ - field: "GrantId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProjectGrantMemberSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// ProjectGrantMemberSearchRequestValidationError is the validation error -// returned by ProjectGrantMemberSearchRequest.Validate if the designated -// constraints aren't met. -type ProjectGrantMemberSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberSearchRequestValidationError) ErrorName() string { - return "ProjectGrantMemberSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberSearchRequestValidationError{} - -// Validate checks the field values on ProjectGrantMemberSearchQuery with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ProjectGrantMemberSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _ProjectGrantMemberSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return ProjectGrantMemberSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// ProjectGrantMemberSearchQueryValidationError is the validation error -// returned by ProjectGrantMemberSearchQuery.Validate if the designated -// constraints aren't met. -type ProjectGrantMemberSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProjectGrantMemberSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProjectGrantMemberSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProjectGrantMemberSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProjectGrantMemberSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProjectGrantMemberSearchQueryValidationError) ErrorName() string { - return "ProjectGrantMemberSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e ProjectGrantMemberSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProjectGrantMemberSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProjectGrantMemberSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProjectGrantMemberSearchQueryValidationError{} - -var _ProjectGrantMemberSearchQuery_Key_NotInLookup = map[ProjectGrantMemberSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on UserGrant with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *UserGrant) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for UserId - - // no validation rules for OrgId - - // no validation rules for ProjectId - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for GrantId - - return nil -} - -// UserGrantValidationError is the validation error returned by -// UserGrant.Validate if the designated constraints aren't met. -type UserGrantValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantValidationError) ErrorName() string { return "UserGrantValidationError" } - -// Error satisfies the builtin error interface -func (e UserGrantValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrant.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantValidationError{} - -// Validate checks the field values on UserGrantCreate with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserGrantCreate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return UserGrantCreateValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetProjectId()) < 1 { - return UserGrantCreateValidationError{ - field: "ProjectId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for GrantId - - return nil -} - -// UserGrantCreateValidationError is the validation error returned by -// UserGrantCreate.Validate if the designated constraints aren't met. -type UserGrantCreateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantCreateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantCreateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantCreateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantCreateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantCreateValidationError) ErrorName() string { return "UserGrantCreateValidationError" } - -// Error satisfies the builtin error interface -func (e UserGrantCreateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantCreate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantCreateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantCreateValidationError{} - -// Validate checks the field values on UserGrantUpdate with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *UserGrantUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return UserGrantUpdateValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return UserGrantUpdateValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// UserGrantUpdateValidationError is the validation error returned by -// UserGrantUpdate.Validate if the designated constraints aren't met. -type UserGrantUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantUpdateValidationError) ErrorName() string { return "UserGrantUpdateValidationError" } - -// Error satisfies the builtin error interface -func (e UserGrantUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantUpdateValidationError{} - -// Validate checks the field values on UserGrantRemoveBulk with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantRemoveBulk) Validate() error { - if m == nil { - return nil - } - - if len(m.GetIds()) < 1 { - return UserGrantRemoveBulkValidationError{ - field: "Ids", - reason: "value must contain at least 1 item(s)", - } - } - - return nil -} - -// UserGrantRemoveBulkValidationError is the validation error returned by -// UserGrantRemoveBulk.Validate if the designated constraints aren't met. -type UserGrantRemoveBulkValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantRemoveBulkValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantRemoveBulkValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantRemoveBulkValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantRemoveBulkValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantRemoveBulkValidationError) ErrorName() string { - return "UserGrantRemoveBulkValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantRemoveBulkValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantRemoveBulk.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantRemoveBulkValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantRemoveBulkValidationError{} - -// Validate checks the field values on UserGrantID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserGrantID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return UserGrantIDValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return UserGrantIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// UserGrantIDValidationError is the validation error returned by -// UserGrantID.Validate if the designated constraints aren't met. -type UserGrantIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantIDValidationError) ErrorName() string { return "UserGrantIDValidationError" } - -// Error satisfies the builtin error interface -func (e UserGrantIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantIDValidationError{} - -// Validate checks the field values on UserGrantView with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *UserGrantView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for UserId - - // no validation rules for OrgId - - // no validation rules for ProjectId - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for UserName - - // no validation rules for FirstName - - // no validation rules for LastName - - // no validation rules for Email - - // no validation rules for OrgName - - // no validation rules for OrgDomain - - // no validation rules for ProjectName - - // no validation rules for Sequence - - // no validation rules for ResourceOwner - - // no validation rules for DisplayName - - // no validation rules for GrantId - - return nil -} - -// UserGrantViewValidationError is the validation error returned by -// UserGrantView.Validate if the designated constraints aren't met. -type UserGrantViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantViewValidationError) ErrorName() string { return "UserGrantViewValidationError" } - -// Error satisfies the builtin error interface -func (e UserGrantViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantViewValidationError{} - -// Validate checks the field values on UserGrantSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserGrantSearchResponseValidationError is the validation error returned by -// UserGrantSearchResponse.Validate if the designated constraints aren't met. -type UserGrantSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantSearchResponseValidationError) ErrorName() string { - return "UserGrantSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantSearchResponseValidationError{} - -// Validate checks the field values on UserGrantSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserGrantSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// UserGrantSearchRequestValidationError is the validation error returned by -// UserGrantSearchRequest.Validate if the designated constraints aren't met. -type UserGrantSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantSearchRequestValidationError) ErrorName() string { - return "UserGrantSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantSearchRequestValidationError{} - -// Validate checks the field values on UserGrantSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserGrantSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _UserGrantSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return UserGrantSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - if _, ok := _UserGrantSearchQuery_Method_InLookup[m.GetMethod()]; !ok { - return UserGrantSearchQueryValidationError{ - field: "Method", - reason: "value must be in list [0]", - } - } - - // no validation rules for Value - - return nil -} - -// UserGrantSearchQueryValidationError is the validation error returned by -// UserGrantSearchQuery.Validate if the designated constraints aren't met. -type UserGrantSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserGrantSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserGrantSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserGrantSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserGrantSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserGrantSearchQueryValidationError) ErrorName() string { - return "UserGrantSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e UserGrantSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserGrantSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserGrantSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserGrantSearchQueryValidationError{} - -var _UserGrantSearchQuery_Key_NotInLookup = map[UserGrantSearchKey]struct{}{ - 0: {}, -} - -var _UserGrantSearchQuery_Method_InLookup = map[SearchMethod]struct{}{ - 0: {}, -} - -// Validate checks the field values on UserMembershipSearchResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserMembershipSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserMembershipSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserMembershipSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// UserMembershipSearchResponseValidationError is the validation error returned -// by UserMembershipSearchResponse.Validate if the designated constraints -// aren't met. -type UserMembershipSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserMembershipSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserMembershipSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserMembershipSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserMembershipSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserMembershipSearchResponseValidationError) ErrorName() string { - return "UserMembershipSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UserMembershipSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserMembershipSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserMembershipSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserMembershipSearchResponseValidationError{} - -// Validate checks the field values on UserMembershipSearchRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserMembershipSearchRequest) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetUserId()) < 1 { - return UserMembershipSearchRequestValidationError{ - field: "UserId", - reason: "value length must be at least 1 runes", - } - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserMembershipSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// UserMembershipSearchRequestValidationError is the validation error returned -// by UserMembershipSearchRequest.Validate if the designated constraints -// aren't met. -type UserMembershipSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserMembershipSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserMembershipSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserMembershipSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserMembershipSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserMembershipSearchRequestValidationError) ErrorName() string { - return "UserMembershipSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UserMembershipSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserMembershipSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserMembershipSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserMembershipSearchRequestValidationError{} - -// Validate checks the field values on UserMembershipSearchQuery with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserMembershipSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _UserMembershipSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return UserMembershipSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - if _, ok := _UserMembershipSearchQuery_Method_InLookup[m.GetMethod()]; !ok { - return UserMembershipSearchQueryValidationError{ - field: "Method", - reason: "value must be in list [0]", - } - } - - // no validation rules for Value - - return nil -} - -// UserMembershipSearchQueryValidationError is the validation error returned by -// UserMembershipSearchQuery.Validate if the designated constraints aren't met. -type UserMembershipSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserMembershipSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserMembershipSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserMembershipSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserMembershipSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserMembershipSearchQueryValidationError) ErrorName() string { - return "UserMembershipSearchQueryValidationError" -} - -// Error satisfies the builtin error interface -func (e UserMembershipSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserMembershipSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserMembershipSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserMembershipSearchQueryValidationError{} - -var _UserMembershipSearchQuery_Key_NotInLookup = map[UserMembershipSearchKey]struct{}{ - 0: {}, -} - -var _UserMembershipSearchQuery_Method_InLookup = map[SearchMethod]struct{}{ - 0: {}, -} - -// Validate checks the field values on UserMembershipView with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *UserMembershipView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for MemberType - - // no validation rules for AggregateId - - // no validation rules for ObjectId - - // no validation rules for DisplayName - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserMembershipViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserMembershipViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Sequence - - // no validation rules for ResourceOwner - - return nil -} - -// UserMembershipViewValidationError is the validation error returned by -// UserMembershipView.Validate if the designated constraints aren't met. -type UserMembershipViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserMembershipViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserMembershipViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserMembershipViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserMembershipViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserMembershipViewValidationError) ErrorName() string { - return "UserMembershipViewValidationError" -} - -// Error satisfies the builtin error interface -func (e UserMembershipViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUserMembershipView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserMembershipViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserMembershipViewValidationError{} - -// Validate checks the field values on IdpID with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IdpID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return IdpIDValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// IdpIDValidationError is the validation error returned by IdpID.Validate if -// the designated constraints aren't met. -type IdpIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpIDValidationError) ErrorName() string { return "IdpIDValidationError" } - -// Error satisfies the builtin error interface -func (e IdpIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpIDValidationError{} - -// Validate checks the field values on Idp with the rules defined in the proto -// definition for this message. If any rules are violated, an error is returned. -func (m *Idp) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for StylingType - - // no validation rules for Sequence - - switch m.IdpConfig.(type) { - - case *Idp_OidcConfig: - - if v, ok := interface{}(m.GetOidcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpValidationError{ - field: "OidcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IdpValidationError is the validation error returned by Idp.Validate if the -// designated constraints aren't met. -type IdpValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpValidationError) ErrorName() string { return "IdpValidationError" } - -// Error satisfies the builtin error interface -func (e IdpValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdp.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpValidationError{} - -// Validate checks the field values on IdpUpdate with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IdpUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetId()) < 1 { - return IdpUpdateValidationError{ - field: "Id", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return IdpUpdateValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for StylingType - - return nil -} - -// IdpUpdateValidationError is the validation error returned by -// IdpUpdate.Validate if the designated constraints aren't met. -type IdpUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpUpdateValidationError) ErrorName() string { return "IdpUpdateValidationError" } - -// Error satisfies the builtin error interface -func (e IdpUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpUpdateValidationError{} - -// Validate checks the field values on OidcIdpConfig with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *OidcIdpConfig) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ClientId - - // no validation rules for ClientSecret - - // no validation rules for Issuer - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigValidationError is the validation error returned by -// OidcIdpConfig.Validate if the designated constraints aren't met. -type OidcIdpConfigValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigValidationError) ErrorName() string { return "OidcIdpConfigValidationError" } - -// Error satisfies the builtin error interface -func (e OidcIdpConfigValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfig.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigValidationError{} - -// Validate checks the field values on OidcIdpConfigCreate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OidcIdpConfigCreate) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetName()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "Name", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for StylingType - - if l := utf8.RuneCountInString(m.GetClientId()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "ClientId", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetClientSecret()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "ClientSecret", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if l := utf8.RuneCountInString(m.GetIssuer()); l < 1 || l > 200 { - return OidcIdpConfigCreateValidationError{ - field: "Issuer", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigCreateValidationError is the validation error returned by -// OidcIdpConfigCreate.Validate if the designated constraints aren't met. -type OidcIdpConfigCreateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigCreateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigCreateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigCreateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigCreateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigCreateValidationError) ErrorName() string { - return "OidcIdpConfigCreateValidationError" -} - -// Error satisfies the builtin error interface -func (e OidcIdpConfigCreateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfigCreate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigCreateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigCreateValidationError{} - -// Validate checks the field values on OidcIdpConfigUpdate with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *OidcIdpConfigUpdate) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetIdpId()) < 1 { - return OidcIdpConfigUpdateValidationError{ - field: "IdpId", - reason: "value length must be at least 1 runes", - } - } - - if l := utf8.RuneCountInString(m.GetClientId()); l < 1 || l > 200 { - return OidcIdpConfigUpdateValidationError{ - field: "ClientId", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for ClientSecret - - if l := utf8.RuneCountInString(m.GetIssuer()); l < 1 || l > 200 { - return OidcIdpConfigUpdateValidationError{ - field: "Issuer", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigUpdateValidationError is the validation error returned by -// OidcIdpConfigUpdate.Validate if the designated constraints aren't met. -type OidcIdpConfigUpdateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigUpdateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigUpdateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigUpdateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigUpdateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigUpdateValidationError) ErrorName() string { - return "OidcIdpConfigUpdateValidationError" -} - -// Error satisfies the builtin error interface -func (e OidcIdpConfigUpdateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfigUpdate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigUpdateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigUpdateValidationError{} - -// Validate checks the field values on IdpSearchResponse with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *IdpSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// IdpSearchResponseValidationError is the validation error returned by -// IdpSearchResponse.Validate if the designated constraints aren't met. -type IdpSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpSearchResponseValidationError) ErrorName() string { - return "IdpSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e IdpSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpSearchResponseValidationError{} - -// Validate checks the field values on IdpView with the rules defined in the -// proto definition for this message. If any rules are violated, an error is returned. -func (m *IdpView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Id - - // no validation rules for State - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Name - - // no validation rules for StylingType - - // no validation rules for ProviderType - - // no validation rules for Sequence - - switch m.IdpConfigView.(type) { - - case *IdpView_OidcConfig: - - if v, ok := interface{}(m.GetOidcConfig()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpViewValidationError{ - field: "OidcConfig", - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IdpViewValidationError is the validation error returned by IdpView.Validate -// if the designated constraints aren't met. -type IdpViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpViewValidationError) ErrorName() string { return "IdpViewValidationError" } - -// Error satisfies the builtin error interface -func (e IdpViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpViewValidationError{} - -// Validate checks the field values on OidcIdpConfigView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *OidcIdpConfigView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for ClientId - - // no validation rules for Issuer - - // no validation rules for IdpDisplayNameMapping - - // no validation rules for UsernameMapping - - return nil -} - -// OidcIdpConfigViewValidationError is the validation error returned by -// OidcIdpConfigView.Validate if the designated constraints aren't met. -type OidcIdpConfigViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e OidcIdpConfigViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e OidcIdpConfigViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e OidcIdpConfigViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e OidcIdpConfigViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e OidcIdpConfigViewValidationError) ErrorName() string { - return "OidcIdpConfigViewValidationError" -} - -// Error satisfies the builtin error interface -func (e OidcIdpConfigViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sOidcIdpConfigView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = OidcIdpConfigViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = OidcIdpConfigViewValidationError{} - -// Validate checks the field values on IdpSearchRequest with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *IdpSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - for idx, item := range m.GetQueries() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpSearchRequestValidationError{ - field: fmt.Sprintf("Queries[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - return nil -} - -// IdpSearchRequestValidationError is the validation error returned by -// IdpSearchRequest.Validate if the designated constraints aren't met. -type IdpSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpSearchRequestValidationError) ErrorName() string { return "IdpSearchRequestValidationError" } - -// Error satisfies the builtin error interface -func (e IdpSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpSearchRequestValidationError{} - -// Validate checks the field values on IdpSearchQuery with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IdpSearchQuery) Validate() error { - if m == nil { - return nil - } - - if _, ok := _IdpSearchQuery_Key_NotInLookup[m.GetKey()]; ok { - return IdpSearchQueryValidationError{ - field: "Key", - reason: "value must not be in list [0]", - } - } - - // no validation rules for Method - - // no validation rules for Value - - return nil -} - -// IdpSearchQueryValidationError is the validation error returned by -// IdpSearchQuery.Validate if the designated constraints aren't met. -type IdpSearchQueryValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpSearchQueryValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpSearchQueryValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpSearchQueryValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpSearchQueryValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpSearchQueryValidationError) ErrorName() string { return "IdpSearchQueryValidationError" } - -// Error satisfies the builtin error interface -func (e IdpSearchQueryValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpSearchQuery.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpSearchQueryValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpSearchQueryValidationError{} - -var _IdpSearchQuery_Key_NotInLookup = map[IdpSearchKey]struct{}{ - 0: {}, -} - -// Validate checks the field values on LoginPolicy with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *LoginPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for AllowUsernamePassword - - // no validation rules for AllowRegister - - // no validation rules for AllowExternalIdp - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return LoginPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return LoginPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ForceMfa - - return nil -} - -// LoginPolicyValidationError is the validation error returned by -// LoginPolicy.Validate if the designated constraints aren't met. -type LoginPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e LoginPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e LoginPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e LoginPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e LoginPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e LoginPolicyValidationError) ErrorName() string { return "LoginPolicyValidationError" } - -// Error satisfies the builtin error interface -func (e LoginPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sLoginPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = LoginPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = LoginPolicyValidationError{} - -// Validate checks the field values on LoginPolicyRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *LoginPolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for AllowUsernamePassword - - // no validation rules for AllowRegister - - // no validation rules for AllowExternalIdp - - // no validation rules for ForceMfa - - return nil -} - -// LoginPolicyRequestValidationError is the validation error returned by -// LoginPolicyRequest.Validate if the designated constraints aren't met. -type LoginPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e LoginPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e LoginPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e LoginPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e LoginPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e LoginPolicyRequestValidationError) ErrorName() string { - return "LoginPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e LoginPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sLoginPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = LoginPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = LoginPolicyRequestValidationError{} - -// Validate checks the field values on IdpProviderID with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IdpProviderID) Validate() error { - if m == nil { - return nil - } - - if utf8.RuneCountInString(m.GetIdpConfigId()) < 1 { - return IdpProviderIDValidationError{ - field: "IdpConfigId", - reason: "value length must be at least 1 runes", - } - } - - return nil -} - -// IdpProviderIDValidationError is the validation error returned by -// IdpProviderID.Validate if the designated constraints aren't met. -type IdpProviderIDValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderIDValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderIDValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderIDValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderIDValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderIDValidationError) ErrorName() string { return "IdpProviderIDValidationError" } - -// Error satisfies the builtin error interface -func (e IdpProviderIDValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderID.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderIDValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderIDValidationError{} - -// Validate checks the field values on IdpProviderAdd with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IdpProviderAdd) Validate() error { - if m == nil { - return nil - } - - if l := utf8.RuneCountInString(m.GetIdpConfigId()); l < 1 || l > 200 { - return IdpProviderAddValidationError{ - field: "IdpConfigId", - reason: "value length must be between 1 and 200 runes, inclusive", - } - } - - if _, ok := _IdpProviderAdd_IdpProviderType_NotInLookup[m.GetIdpProviderType()]; ok { - return IdpProviderAddValidationError{ - field: "IdpProviderType", - reason: "value must not be in list [0]", - } - } - - return nil -} - -// IdpProviderAddValidationError is the validation error returned by -// IdpProviderAdd.Validate if the designated constraints aren't met. -type IdpProviderAddValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderAddValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderAddValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderAddValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderAddValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderAddValidationError) ErrorName() string { return "IdpProviderAddValidationError" } - -// Error satisfies the builtin error interface -func (e IdpProviderAddValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderAdd.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderAddValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderAddValidationError{} - -var _IdpProviderAdd_IdpProviderType_NotInLookup = map[IdpProviderType]struct{}{ - 0: {}, -} - -// Validate checks the field values on IdpProvider with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *IdpProvider) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IdpConfigId - - // no validation rules for IdpProvider_Type - - return nil -} - -// IdpProviderValidationError is the validation error returned by -// IdpProvider.Validate if the designated constraints aren't met. -type IdpProviderValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderValidationError) ErrorName() string { return "IdpProviderValidationError" } - -// Error satisfies the builtin error interface -func (e IdpProviderValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProvider.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderValidationError{} - -// Validate checks the field values on LoginPolicyView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *LoginPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Default - - // no validation rules for AllowUsernamePassword - - // no validation rules for AllowRegister - - // no validation rules for AllowExternalIdp - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return LoginPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return LoginPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for ForceMfa - - return nil -} - -// LoginPolicyViewValidationError is the validation error returned by -// LoginPolicyView.Validate if the designated constraints aren't met. -type LoginPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e LoginPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e LoginPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e LoginPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e LoginPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e LoginPolicyViewValidationError) ErrorName() string { return "LoginPolicyViewValidationError" } - -// Error satisfies the builtin error interface -func (e LoginPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sLoginPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = LoginPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = LoginPolicyViewValidationError{} - -// Validate checks the field values on IdpProviderView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *IdpProviderView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for IdpConfigId - - // no validation rules for Name - - // no validation rules for Type - - return nil -} - -// IdpProviderViewValidationError is the validation error returned by -// IdpProviderView.Validate if the designated constraints aren't met. -type IdpProviderViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderViewValidationError) ErrorName() string { return "IdpProviderViewValidationError" } - -// Error satisfies the builtin error interface -func (e IdpProviderViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderViewValidationError{} - -// Validate checks the field values on IdpProviderSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IdpProviderSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpProviderSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return IdpProviderSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// IdpProviderSearchResponseValidationError is the validation error returned by -// IdpProviderSearchResponse.Validate if the designated constraints aren't met. -type IdpProviderSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderSearchResponseValidationError) ErrorName() string { - return "IdpProviderSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e IdpProviderSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderSearchResponseValidationError{} - -// Validate checks the field values on IdpProviderSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *IdpProviderSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - return nil -} - -// IdpProviderSearchRequestValidationError is the validation error returned by -// IdpProviderSearchRequest.Validate if the designated constraints aren't met. -type IdpProviderSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e IdpProviderSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e IdpProviderSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e IdpProviderSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e IdpProviderSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e IdpProviderSearchRequestValidationError) ErrorName() string { - return "IdpProviderSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e IdpProviderSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sIdpProviderSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = IdpProviderSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = IdpProviderSearchRequestValidationError{} - -// Validate checks the field values on ExternalIDPSearchRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPSearchRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for UserId - - return nil -} - -// ExternalIDPSearchRequestValidationError is the validation error returned by -// ExternalIDPSearchRequest.Validate if the designated constraints aren't met. -type ExternalIDPSearchRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPSearchRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPSearchRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPSearchRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPSearchRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPSearchRequestValidationError) ErrorName() string { - return "ExternalIDPSearchRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPSearchRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPSearchRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPSearchRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPSearchRequestValidationError{} - -// Validate checks the field values on ExternalIDPSearchResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPSearchResponse) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Offset - - // no validation rules for Limit - - // no validation rules for TotalResult - - for idx, item := range m.GetResult() { - _, _ = idx, item - - if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPSearchResponseValidationError{ - field: fmt.Sprintf("Result[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for ProcessedSequence - - if v, ok := interface{}(m.GetViewTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPSearchResponseValidationError{ - field: "ViewTimestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ExternalIDPSearchResponseValidationError is the validation error returned by -// ExternalIDPSearchResponse.Validate if the designated constraints aren't met. -type ExternalIDPSearchResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPSearchResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPSearchResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPSearchResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPSearchResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPSearchResponseValidationError) ErrorName() string { - return "ExternalIDPSearchResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPSearchResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPSearchResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPSearchResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPSearchResponseValidationError{} - -// Validate checks the field values on ExternalIDPView with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *ExternalIDPView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for IdpConfigId - - // no validation rules for ExternalUserId - - // no validation rules for IdpName - - // no validation rules for ExternalUserDisplayName - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ExternalIDPViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// ExternalIDPViewValidationError is the validation error returned by -// ExternalIDPView.Validate if the designated constraints aren't met. -type ExternalIDPViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPViewValidationError) ErrorName() string { return "ExternalIDPViewValidationError" } - -// Error satisfies the builtin error interface -func (e ExternalIDPViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPViewValidationError{} - -// Validate checks the field values on ExternalIDPRemoveRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *ExternalIDPRemoveRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for UserId - - // no validation rules for IdpConfigId - - // no validation rules for ExternalUserId - - return nil -} - -// ExternalIDPRemoveRequestValidationError is the validation error returned by -// ExternalIDPRemoveRequest.Validate if the designated constraints aren't met. -type ExternalIDPRemoveRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ExternalIDPRemoveRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ExternalIDPRemoveRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ExternalIDPRemoveRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ExternalIDPRemoveRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ExternalIDPRemoveRequestValidationError) ErrorName() string { - return "ExternalIDPRemoveRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ExternalIDPRemoveRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sExternalIDPRemoveRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ExternalIDPRemoveRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ExternalIDPRemoveRequestValidationError{} - -// Validate checks the field values on SecondFactorsResult with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *SecondFactorsResult) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// SecondFactorsResultValidationError is the validation error returned by -// SecondFactorsResult.Validate if the designated constraints aren't met. -type SecondFactorsResultValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SecondFactorsResultValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SecondFactorsResultValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SecondFactorsResultValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SecondFactorsResultValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SecondFactorsResultValidationError) ErrorName() string { - return "SecondFactorsResultValidationError" -} - -// Error satisfies the builtin error interface -func (e SecondFactorsResultValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSecondFactorsResult.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SecondFactorsResultValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SecondFactorsResultValidationError{} - -// Validate checks the field values on SecondFactor with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *SecondFactor) Validate() error { - if m == nil { - return nil - } - - // no validation rules for SecondFactor - - return nil -} - -// SecondFactorValidationError is the validation error returned by -// SecondFactor.Validate if the designated constraints aren't met. -type SecondFactorValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SecondFactorValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SecondFactorValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SecondFactorValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SecondFactorValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SecondFactorValidationError) ErrorName() string { return "SecondFactorValidationError" } - -// Error satisfies the builtin error interface -func (e SecondFactorValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSecondFactor.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SecondFactorValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SecondFactorValidationError{} - -// Validate checks the field values on MultiFactorsResult with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *MultiFactorsResult) Validate() error { - if m == nil { - return nil - } - - return nil -} - -// MultiFactorsResultValidationError is the validation error returned by -// MultiFactorsResult.Validate if the designated constraints aren't met. -type MultiFactorsResultValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MultiFactorsResultValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MultiFactorsResultValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MultiFactorsResultValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MultiFactorsResultValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MultiFactorsResultValidationError) ErrorName() string { - return "MultiFactorsResultValidationError" -} - -// Error satisfies the builtin error interface -func (e MultiFactorsResultValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMultiFactorsResult.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MultiFactorsResultValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MultiFactorsResultValidationError{} - -// Validate checks the field values on MultiFactor with the rules defined in -// the proto definition for this message. If any rules are violated, an error -// is returned. -func (m *MultiFactor) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MultiFactor - - return nil -} - -// MultiFactorValidationError is the validation error returned by -// MultiFactor.Validate if the designated constraints aren't met. -type MultiFactorValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e MultiFactorValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e MultiFactorValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e MultiFactorValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e MultiFactorValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e MultiFactorValidationError) ErrorName() string { return "MultiFactorValidationError" } - -// Error satisfies the builtin error interface -func (e MultiFactorValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sMultiFactor.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = MultiFactorValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = MultiFactorValidationError{} - -// Validate checks the field values on PasswordComplexityPolicy with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordComplexityPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MinLength - - // no validation rules for HasLowercase - - // no validation rules for HasUppercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordComplexityPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordComplexityPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// PasswordComplexityPolicyValidationError is the validation error returned by -// PasswordComplexityPolicy.Validate if the designated constraints aren't met. -type PasswordComplexityPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordComplexityPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordComplexityPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordComplexityPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordComplexityPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordComplexityPolicyValidationError) ErrorName() string { - return "PasswordComplexityPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordComplexityPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordComplexityPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordComplexityPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordComplexityPolicyValidationError{} - -// Validate checks the field values on PasswordComplexityPolicyRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordComplexityPolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MinLength - - // no validation rules for HasLowercase - - // no validation rules for HasUppercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - return nil -} - -// PasswordComplexityPolicyRequestValidationError is the validation error -// returned by PasswordComplexityPolicyRequest.Validate if the designated -// constraints aren't met. -type PasswordComplexityPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordComplexityPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordComplexityPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordComplexityPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordComplexityPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordComplexityPolicyRequestValidationError) ErrorName() string { - return "PasswordComplexityPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordComplexityPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordComplexityPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordComplexityPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordComplexityPolicyRequestValidationError{} - -// Validate checks the field values on PasswordComplexityPolicyView with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordComplexityPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Default - - // no validation rules for MinLength - - // no validation rules for HasLowercase - - // no validation rules for HasUppercase - - // no validation rules for HasNumber - - // no validation rules for HasSymbol - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordComplexityPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordComplexityPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// PasswordComplexityPolicyViewValidationError is the validation error returned -// by PasswordComplexityPolicyView.Validate if the designated constraints -// aren't met. -type PasswordComplexityPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordComplexityPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordComplexityPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordComplexityPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordComplexityPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordComplexityPolicyViewValidationError) ErrorName() string { - return "PasswordComplexityPolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordComplexityPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordComplexityPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordComplexityPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordComplexityPolicyViewValidationError{} - -// Validate checks the field values on PasswordAgePolicy with the rules defined -// in the proto definition for this message. If any rules are violated, an -// error is returned. -func (m *PasswordAgePolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAgeDays - - // no validation rules for ExpireWarnDays - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordAgePolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordAgePolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// PasswordAgePolicyValidationError is the validation error returned by -// PasswordAgePolicy.Validate if the designated constraints aren't met. -type PasswordAgePolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordAgePolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordAgePolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordAgePolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordAgePolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordAgePolicyValidationError) ErrorName() string { - return "PasswordAgePolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordAgePolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordAgePolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordAgePolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordAgePolicyValidationError{} - -// Validate checks the field values on PasswordAgePolicyRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordAgePolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAgeDays - - // no validation rules for ExpireWarnDays - - return nil -} - -// PasswordAgePolicyRequestValidationError is the validation error returned by -// PasswordAgePolicyRequest.Validate if the designated constraints aren't met. -type PasswordAgePolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordAgePolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordAgePolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordAgePolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordAgePolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordAgePolicyRequestValidationError) ErrorName() string { - return "PasswordAgePolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordAgePolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordAgePolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordAgePolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordAgePolicyRequestValidationError{} - -// Validate checks the field values on PasswordAgePolicyView with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordAgePolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Default - - // no validation rules for MaxAgeDays - - // no validation rules for ExpireWarnDays - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordAgePolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordAgePolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// PasswordAgePolicyViewValidationError is the validation error returned by -// PasswordAgePolicyView.Validate if the designated constraints aren't met. -type PasswordAgePolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordAgePolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordAgePolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordAgePolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordAgePolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordAgePolicyViewValidationError) ErrorName() string { - return "PasswordAgePolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordAgePolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordAgePolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordAgePolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordAgePolicyViewValidationError{} - -// Validate checks the field values on PasswordLockoutPolicy with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordLockoutPolicy) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAttempts - - // no validation rules for ShowLockoutFailure - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordLockoutPolicyValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordLockoutPolicyValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// PasswordLockoutPolicyValidationError is the validation error returned by -// PasswordLockoutPolicy.Validate if the designated constraints aren't met. -type PasswordLockoutPolicyValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordLockoutPolicyValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordLockoutPolicyValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordLockoutPolicyValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordLockoutPolicyValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordLockoutPolicyValidationError) ErrorName() string { - return "PasswordLockoutPolicyValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordLockoutPolicyValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordLockoutPolicy.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordLockoutPolicyValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordLockoutPolicyValidationError{} - -// Validate checks the field values on PasswordLockoutPolicyRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordLockoutPolicyRequest) Validate() error { - if m == nil { - return nil - } - - // no validation rules for MaxAttempts - - // no validation rules for ShowLockoutFailure - - return nil -} - -// PasswordLockoutPolicyRequestValidationError is the validation error returned -// by PasswordLockoutPolicyRequest.Validate if the designated constraints -// aren't met. -type PasswordLockoutPolicyRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordLockoutPolicyRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordLockoutPolicyRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordLockoutPolicyRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordLockoutPolicyRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordLockoutPolicyRequestValidationError) ErrorName() string { - return "PasswordLockoutPolicyRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordLockoutPolicyRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordLockoutPolicyRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordLockoutPolicyRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordLockoutPolicyRequestValidationError{} - -// Validate checks the field values on PasswordLockoutPolicyView with the rules -// defined in the proto definition for this message. If any rules are -// violated, an error is returned. -func (m *PasswordLockoutPolicyView) Validate() error { - if m == nil { - return nil - } - - // no validation rules for Default - - // no validation rules for MaxAttempts - - // no validation rules for ShowLockoutFailure - - // no validation rules for Sequence - - if v, ok := interface{}(m.GetCreationDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordLockoutPolicyViewValidationError{ - field: "CreationDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if v, ok := interface{}(m.GetChangeDate()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return PasswordLockoutPolicyViewValidationError{ - field: "ChangeDate", - reason: "embedded message failed validation", - cause: err, - } - } - } - - return nil -} - -// PasswordLockoutPolicyViewValidationError is the validation error returned by -// PasswordLockoutPolicyView.Validate if the designated constraints aren't met. -type PasswordLockoutPolicyViewValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PasswordLockoutPolicyViewValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PasswordLockoutPolicyViewValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PasswordLockoutPolicyViewValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PasswordLockoutPolicyViewValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PasswordLockoutPolicyViewValidationError) ErrorName() string { - return "PasswordLockoutPolicyViewValidationError" -} - -// Error satisfies the builtin error interface -func (e PasswordLockoutPolicyViewValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPasswordLockoutPolicyView.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PasswordLockoutPolicyViewValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PasswordLockoutPolicyViewValidationError{} diff --git a/pkg/grpc/management/management.swagger.json b/pkg/grpc/management/management.swagger.json deleted file mode 100644 index ff9909c23e..0000000000 --- a/pkg/grpc/management/management.swagger.json +++ /dev/null @@ -1,9082 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "Management API", - "version": "0.1", - "contact": { - "url": "https://github.com/caos/zitadel/pkg/management" - } - }, - "schemes": [ - "https" - ], - "consumes": [ - "application/json", - "application/grpc" - ], - "produces": [ - "application/json", - "application/grpc" - ], - "paths": { - "/global/orgs/_bydomain": { - "get": { - "summary": "search a organisation by its domain overall organisations", - "operationId": "ManagementService_GetOrgByDomainGlobal", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "domain", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/global/users/_byloginname": { - "get": { - "summary": "GetUserByLoginNameGlobal returns User, global search is overall organisations", - "operationId": "ManagementService_GetUserByLoginNameGlobal", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "login_name", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/grantedprojects/_search": { - "post": { - "summary": "returns all projects my organisation got granted from another organisation", - "operationId": "ManagementService_SearchGrantedProjects", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1GrantedProjectSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/grantedprojects/{project_id}/grants/{id}": { - "get": { - "summary": "returns a project my organisation got granted from another organisation", - "operationId": "ManagementService_GetGrantedProjectByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/healthz": { - "get": { - "summary": "READINESS", - "operationId": "ManagementService_Healthz", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/iam": { - "get": { - "summary": "GetIam returns some needed settings of the iam (Global Organisation ID, Zitadel Project ID)", - "operationId": "ManagementService_GetIam", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Iam" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs": { - "post": { - "operationId": "ManagementService_CreateOrg", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Org" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgCreateRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/default/policies/login": { - "get": { - "operationId": "ManagementService_GetDefaultLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LoginPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/default/policies/password/age": { - "get": { - "operationId": "ManagementService_GetDefaultPasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordAgePolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/default/policies/password/complexity": { - "get": { - "operationId": "ManagementService_GetDefaultPasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/default/policies/password/lockout": { - "get": { - "operationId": "ManagementService_GetDefaultPasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordLockoutPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me": { - "get": { - "operationId": "ManagementService_GetMyOrg", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateMyOrg", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Org" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "properties": {} - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateMyOrg", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Org" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "properties": {} - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/domains": { - "post": { - "operationId": "ManagementService_AddMyOrgDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgDomain" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1AddOrgDomainRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/domains/_search": { - "post": { - "operationId": "ManagementService_SearchMyOrgDomains", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgDomainSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgDomainSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/domains/{domain}": { - "delete": { - "operationId": "ManagementService_RemoveMyOrgDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "domain", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/domains/{domain}/_primary": { - "post": { - "operationId": "ManagementService_SetMyPrimaryOrgDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "domain", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/domains/{domain}/validation/check": { - "post": { - "operationId": "ManagementService_ValidateMyOrgDomain", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ValidateOrgDomainRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/domains/{domain}/validation/create": { - "post": { - "operationId": "ManagementService_GenerateMyOrgDomainValidation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgDomainValidationResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgDomainValidationRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/iampolicy": { - "get": { - "operationId": "ManagementService_GetMyOrgIamPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgIamPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/idps/_search": { - "post": { - "operationId": "ManagementService_SearchIdps", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/idps/oidc": { - "post": { - "operationId": "ManagementService_CreateOidcIdp", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OidcIdpConfigCreate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/idps/{idp_id}/oidcconfig": { - "put": { - "operationId": "ManagementService_UpdateOidcIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OidcIdpConfig" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "idp_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OidcIdpConfigUpdate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/idps/{id}": { - "get": { - "operationId": "ManagementService_IdpByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemoveIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpUpdate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/idps/{id}/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/idps/{id}/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateIdpConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Idp" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/members": { - "post": { - "operationId": "ManagementService_AddMyOrgMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgMember" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1AddOrgMemberRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/members/_search": { - "post": { - "operationId": "ManagementService_SearchMyOrgMembers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgMemberSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OrgMemberSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/members/{user_id}": { - "delete": { - "operationId": "ManagementService_RemoveMyOrgMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_ChangeMyOrgMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgMember" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ChangeOrgMemberRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login": { - "get": { - "operationId": "ManagementService_GetLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LoginPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemoveLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "post": { - "operationId": "ManagementService_CreateLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LoginPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1LoginPolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1LoginPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1LoginPolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/idpproviders": { - "post": { - "operationId": "ManagementService_AddIdpProviderToLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpProvider" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpProviderAdd" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/idpproviders/_search": { - "post": { - "operationId": "ManagementService_GetLoginPolicyIdpProviders", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1IdpProviderSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1IdpProviderSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/idpproviders/{idp_config_id}": { - "delete": { - "operationId": "ManagementService_RemoveIdpProviderFromLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "idp_config_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/multifactors": { - "post": { - "operationId": "ManagementService_AddMultiFactorToLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MultiFactor" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1MultiFactor" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/multifactors/_search": { - "get": { - "operationId": "ManagementService_GetLoginPolicyMultiFactors", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MultiFactorsResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/multifactors/{multi_factor}": { - "delete": { - "operationId": "ManagementService_RemoveMultiFactorFromLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "multi_factor", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "MULTIFACTORTYPE_UNSPECIFIED", - "MULTIFACTORTYPE_U2F_WITH_PIN" - ] - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/secondfactors": { - "post": { - "operationId": "ManagementService_AddSecondFactorToLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1SecondFactor" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1SecondFactor" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/secondfactors/_search": { - "get": { - "operationId": "ManagementService_GetLoginPolicySecondFactors", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1SecondFactorsResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/login/secondfactors/{second_factor}": { - "delete": { - "operationId": "ManagementService_RemoveSecondFactorFromLoginPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "second_factor", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "SECONDFACTORTYPE_UNSPECIFIED", - "SECONDFACTORTYPE_OTP", - "SECONDFACTORTYPE_U2F" - ] - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/password/age": { - "get": { - "operationId": "ManagementService_GetPasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordAgePolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemovePasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "post": { - "operationId": "ManagementService_CreatePasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordAgePolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordAgePolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdatePasswordAgePolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordAgePolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordAgePolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/password/complexity": { - "get": { - "operationId": "ManagementService_GetPasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemovePasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "post": { - "operationId": "ManagementService_CreatePasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdatePasswordComplexityPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordComplexityPolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/me/policies/password/lockout": { - "get": { - "operationId": "ManagementService_GetPasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordLockoutPolicyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemovePasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - }, - "post": { - "operationId": "ManagementService_CreatePasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordLockoutPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordLockoutPolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdatePasswordLockoutPolicy", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1PasswordLockoutPolicy" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordLockoutPolicyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/members/roles": { - "get": { - "operationId": "ManagementService_GetOrgMemberRoles", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OrgMemberRoles" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/orgs/{id}/changes": { - "get": { - "summary": "OrgChanges returns the event stream of the org object", - "operationId": "ManagementService_OrgChanges", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Changes" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "sec_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "sequence_offset", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "asc", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects": { - "post": { - "operationId": "ManagementService_CreateProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Project" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectCreateRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/_search": { - "post": { - "operationId": "ManagementService_SearchProjects", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/grants/members/roles": { - "get": { - "operationId": "ManagementService_GetProjectGrantMemberRoles", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantMemberRoles" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/projects/members/roles": { - "get": { - "operationId": "ManagementService_GetProjectMemberRoles", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectMemberRoles" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}": { - "get": { - "operationId": "ManagementService_ProjectByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemoveProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Project" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectUpdateRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Project" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Project" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/applications/{sec_id}/changes": { - "get": { - "summary": "ApplicationChanges returns the event stream of the application object", - "operationId": "ManagementService_ApplicationChanges", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Changes" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "sec_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "sequence_offset", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "asc", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/changes": { - "get": { - "summary": "ProjectChanges returns the event stream of the project object", - "operationId": "ManagementService_ProjectChanges", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Changes" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "sec_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "sequence_offset", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "asc", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/members": { - "post": { - "operationId": "ManagementService_AddProjectMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectMember" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectMemberAdd" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/members/{user_id}": { - "delete": { - "operationId": "ManagementService_RemoveProjectMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_ChangeProjectMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectMember" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectMemberChange" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/roles": { - "post": { - "operationId": "ManagementService_AddProjectRole", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectRole" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectRoleAdd" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/roles/_bulk": { - "post": { - "summary": "add a list of project roles in one request", - "operationId": "ManagementService_BulkAddProjectRole", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectRoleAddBulk" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{id}/roles/{key}": { - "delete": { - "summary": "RemoveProjectRole removes role from UserGrants, ProjectGrants and from Project", - "operationId": "ManagementService_RemoveProjectRole", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "key", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_ChangeProjectRole", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectRole" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "key", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectRoleChange" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/_search": { - "post": { - "operationId": "ManagementService_SearchApplications", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ApplicationSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/oidc": { - "post": { - "operationId": "ManagementService_CreateOIDCApplication", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Application" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OIDCApplicationCreate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/{application_id}/oidcconfig": { - "put": { - "operationId": "ManagementService_UpdateApplicationOIDCConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1OIDCConfig" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "application_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1OIDCConfigUpdate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/{id}": { - "get": { - "operationId": "ManagementService_ApplicationByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ApplicationView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemoveApplication", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateApplication", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Application" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationUpdate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/{id}/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateApplication", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Application" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/{id}/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateApplication", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Application" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/applications/{id}/oidcconfig/_changeclientsecret": { - "put": { - "operationId": "ManagementService_RegenerateOIDCClientSecret", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ClientSecret" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ApplicationID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants": { - "post": { - "operationId": "ManagementService_CreateProjectGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantCreate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/_search": { - "post": { - "operationId": "ManagementService_SearchProjectGrants", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/{grant_id}/members": { - "post": { - "operationId": "ManagementService_AddProjectGrantMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantMember" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "grant_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantMemberAdd" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/{grant_id}/members/_search": { - "post": { - "operationId": "ManagementService_SearchProjectGrantMembers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantMemberSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "grant_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantMemberSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/{grant_id}/members/{user_id}": { - "delete": { - "operationId": "ManagementService_RemoveProjectGrantMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "grant_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_ChangeProjectGrantMember", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantMember" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "grant_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantMemberChange" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/{id}": { - "get": { - "operationId": "ManagementService_ProjectGrantByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrantView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "summary": "RemoveProjectGrant removes project grant and all user grants for this project grant", - "operationId": "ManagementService_RemoveProjectGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateProjectGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantUpdate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/{id}/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateProjectGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/grants/{id}/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateProjectGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectGrantID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/members/_search": { - "post": { - "operationId": "ManagementService_SearchProjectMembers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectMemberSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectMemberSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/projects/{project_id}/roles/_search": { - "post": { - "operationId": "ManagementService_SearchProjectRoles", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ProjectRoleSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "project_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ProjectRoleSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/ready": { - "get": { - "operationId": "ManagementService_Ready", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/users": { - "post": { - "operationId": "ManagementService_CreateUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1CreateUserRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/_isunique": { - "get": { - "operationId": "ManagementService_IsUserUnique", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UniqueUserResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "email", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/_search": { - "post": { - "summary": "Limit should always be set, there is a default limit set by the service", - "operationId": "ManagementService_SearchUsers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/grants/_search": { - "post": { - "operationId": "ManagementService_SearchUserGrants", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrantSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}": { - "get": { - "operationId": "ManagementService_GetUserByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_DeleteUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/_lock": { - "put": { - "operationId": "ManagementService_LockUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/_resendinitialisation": { - "post": { - "operationId": "ManagementService_ResendInitialMail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1InitialMailRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/_unlock": { - "put": { - "operationId": "ManagementService_UnlockUser", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/address": { - "get": { - "operationId": "ManagementService_GetUserAddress", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAddressView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateUserAddress", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserAddress" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserAddressRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/changes": { - "get": { - "summary": "UserChanges returns the event stream of the user object", - "operationId": "ManagementService_UserChanges", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1Changes" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "sec_id", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "sequence_offset", - "in": "query", - "required": false, - "type": "string", - "format": "uint64" - }, - { - "name": "asc", - "in": "query", - "required": false, - "type": "boolean" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/email": { - "get": { - "operationId": "ManagementService_GetUserEmail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserEmailView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_ChangeUserEmail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserEmail" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserEmailRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/email/_resendverification": { - "post": { - "operationId": "ManagementService_ResendEmailVerificationMail", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/machine": { - "put": { - "operationId": "ManagementService_UpdateUserMachine", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MachineResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateMachineRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/mfas": { - "get": { - "operationId": "ManagementService_GetUserMfas", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserMultiFactors" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/password/_initialize": { - "post": { - "summary": "A Manager is only allowed to set an initial password, on the next login the user has to change his password", - "operationId": "ManagementService_SetInitialPassword", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1PasswordRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/password/_sendsetnotification": { - "post": { - "summary": "Sends an Notification (Email/SMS) with a password reset Link", - "operationId": "ManagementService_SendSetPasswordNotification", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1SetPasswordNotificationRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/phone": { - "get": { - "operationId": "ManagementService_GetUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserPhoneView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemoveUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_ChangeUserPhone", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserPhone" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserPhoneRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/phone/_resendverification": { - "post": { - "operationId": "ManagementService_ResendPhoneVerificationCode", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/profile": { - "get": { - "operationId": "ManagementService_GetUserProfile", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserProfileView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateUserProfile", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserProfile" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UpdateUserProfileRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{id}/username": { - "get": { - "operationId": "ManagementService_ChangeUserUserName", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "user_name", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/externalidps/_search": { - "post": { - "operationId": "ManagementService_SearchUserExternalIDPs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ExternalIDPSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1ExternalIDPSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/externalidps/{idp_config_id}/{external_user_id}": { - "delete": { - "operationId": "ManagementService_RemoveExternalIDP", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "idp_config_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "external_user_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/grants": { - "post": { - "operationId": "ManagementService_CreateUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantCreate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/grants/{id}": { - "get": { - "operationId": "ManagementService_UserGrantByID", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrantView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_RemoveUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "put": { - "operationId": "ManagementService_UpdateUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantUpdate" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/grants/{id}/_deactivate": { - "put": { - "operationId": "ManagementService_DeactivateUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/grants/{id}/_reactivate": { - "put": { - "operationId": "ManagementService_ReactivateUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserGrant" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantID" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/keys": { - "post": { - "operationId": "ManagementService_AddMachineKey", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1AddMachineKeyResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1AddMachineKeyRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/keys/_search": { - "post": { - "operationId": "ManagementService_SearchMachineKeys", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MachineKeySearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1MachineKeySearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/keys/{key_id}": { - "get": { - "operationId": "ManagementService_GetMachineKey", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1MachineKeyView" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "key_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - }, - "delete": { - "operationId": "ManagementService_DeleteMachineKey", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "key_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/users/{user_id}/memberships/_search": { - "post": { - "operationId": "ManagementService_SearchUserMemberships", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1UserMembershipSearchResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "user_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserMembershipSearchRequest" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/usersgrants/_bulk": { - "delete": { - "summary": "remove a list of user grants in one request", - "operationId": "ManagementService_BulkRemoveUserGrant", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "properties": {} - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1UserGrantRemoveBulk" - } - } - ], - "tags": [ - "ManagementService" - ] - } - }, - "/validate": { - "get": { - "operationId": "ManagementService_Validate", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - }, - "/zitadel/docs": { - "get": { - "operationId": "ManagementService_GetZitadelDocs", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1ZitadelDocs" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - }, - "tags": [ - "ManagementService" - ] - } - } - }, - "definitions": { - "protobufAny": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - }, - "value": { - "type": "string", - "format": "byte", - "description": "Must be a valid serialized protocol buffer of the above specified type." - } - }, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "runtimeError": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufAny" - } - } - } - }, - "v1AddMachineKeyRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1MachineKeyType" - }, - "expiration_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1AddMachineKeyResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "type": { - "$ref": "#/definitions/v1MachineKeyType" - }, - "expiration_date": { - "type": "string", - "format": "date-time" - }, - "key_details": { - "type": "string", - "format": "byte" - } - } - }, - "v1AddOrgDomainRequest": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - } - }, - "v1AddOrgMemberRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1AppState": { - "type": "string", - "enum": [ - "APPSTATE_UNSPECIFIED", - "APPSTATE_ACTIVE", - "APPSTATE_INACTIVE" - ], - "default": "APPSTATE_UNSPECIFIED" - }, - "v1Application": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1AppState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "oidc_config": { - "$ref": "#/definitions/v1OIDCConfig" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ApplicationID": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "project_id": { - "type": "string" - } - } - }, - "v1ApplicationSearchKey": { - "type": "string", - "enum": [ - "APPLICATIONSERACHKEY_UNSPECIFIED", - "APPLICATIONSEARCHKEY_APP_NAME" - ], - "default": "APPLICATIONSERACHKEY_UNSPECIFIED" - }, - "v1ApplicationSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ApplicationSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ApplicationSearchRequest": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ApplicationSearchQuery" - } - } - } - }, - "v1ApplicationSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ApplicationView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ApplicationUpdate": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "v1ApplicationView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1AppState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "oidc_config": { - "$ref": "#/definitions/v1OIDCConfig" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1Change": { - "type": "object", - "properties": { - "change_date": { - "type": "string", - "format": "date-time" - }, - "event_type": { - "$ref": "#/definitions/v1LocalizedMessage" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "editor_id": { - "type": "string" - }, - "editor": { - "type": "string" - }, - "data": { - "type": "object" - } - } - }, - "v1ChangeOrgMemberRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1Changes": { - "type": "object", - "properties": { - "changes": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Change" - } - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ClientSecret": { - "type": "object", - "properties": { - "client_secret": { - "type": "string" - } - } - }, - "v1CreateHumanRequest": { - "type": "object", - "properties": { - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "v1CreateMachineRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "v1CreateUserRequest": { - "type": "object", - "properties": { - "user_name": { - "type": "string" - }, - "human": { - "$ref": "#/definitions/v1CreateHumanRequest" - }, - "machine": { - "$ref": "#/definitions/v1CreateMachineRequest" - } - } - }, - "v1ExternalIDPSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "user_id": { - "type": "string" - } - } - }, - "v1ExternalIDPSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ExternalIDPView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ExternalIDPView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "idp_config_id": { - "type": "string" - }, - "external_user_id": { - "type": "string" - }, - "idp_name": { - "type": "string" - }, - "external_user_display_name": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1Gender": { - "type": "string", - "enum": [ - "GENDER_UNSPECIFIED", - "GENDER_FEMALE", - "GENDER_MALE", - "GENDER_DIVERSE" - ], - "default": "GENDER_UNSPECIFIED" - }, - "v1GrantedProjectSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectSearchQuery" - } - } - } - }, - "v1HumanResponse": { - "type": "object", - "properties": { - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "v1HumanView": { - "type": "object", - "properties": { - "password_changed": { - "type": "string", - "format": "date-time" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "v1Iam": { - "type": "object", - "properties": { - "global_org_id": { - "type": "string" - }, - "iam_project_id": { - "type": "string" - }, - "set_up_done": { - "$ref": "#/definitions/v1IamSetupStep" - }, - "set_up_started": { - "$ref": "#/definitions/v1IamSetupStep" - } - } - }, - "v1IamSetupStep": { - "type": "string", - "enum": [ - "iam_setup_step_UNDEFINED", - "iam_setup_step_1", - "iam_setup_step_2" - ], - "default": "iam_setup_step_UNDEFINED" - }, - "v1Idp": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1IdpState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - }, - "oidc_config": { - "$ref": "#/definitions/v1OidcIdpConfig" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1IdpID": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "v1IdpProvider": { - "type": "object", - "properties": { - "idp_config_id": { - "type": "string" - }, - "idp_provider_Type": { - "$ref": "#/definitions/v1IdpProviderType" - } - } - }, - "v1IdpProviderAdd": { - "type": "object", - "properties": { - "idp_config_id": { - "type": "string" - }, - "idp_provider_type": { - "$ref": "#/definitions/v1IdpProviderType" - } - } - }, - "v1IdpProviderSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - } - } - }, - "v1IdpProviderSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IdpProviderView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1IdpProviderType": { - "type": "string", - "enum": [ - "IDPPROVIDERTYPE_UNSPECIFIED", - "IDPPROVIDERTYPE_SYSTEM", - "IDPPROVIDERTYPE_ORG" - ], - "default": "IDPPROVIDERTYPE_UNSPECIFIED" - }, - "v1IdpProviderView": { - "type": "object", - "properties": { - "idp_config_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1IdpType" - } - } - }, - "v1IdpSearchKey": { - "type": "string", - "enum": [ - "IDPSEARCHKEY_UNSPECIFIED", - "IDPSEARCHKEY_IDP_CONFIG_ID", - "IDPSEARCHKEY_NAME", - "IDPSEARCHKEY_PROVIDER_TYPE" - ], - "default": "IDPSEARCHKEY_UNSPECIFIED" - }, - "v1IdpSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1IdpSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1IdpSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IdpSearchQuery" - } - } - } - }, - "v1IdpSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1IdpView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1IdpState": { - "type": "string", - "enum": [ - "IDPCONFIGSTATE_UNSPECIFIED", - "IDPCONFIGSTATE_ACTIVE", - "IDPCONFIGSTATE_INACTIVE" - ], - "default": "IDPCONFIGSTATE_UNSPECIFIED" - }, - "v1IdpStylingType": { - "type": "string", - "enum": [ - "IDPSTYLINGTYPE_UNSPECIFIED", - "IDPSTYLINGTYPE_GOOGLE" - ], - "default": "IDPSTYLINGTYPE_UNSPECIFIED" - }, - "v1IdpType": { - "type": "string", - "enum": [ - "IDPTYPE_UNSPECIFIED", - "IDPTYPE_OIDC", - "IDPTYPE_SAML" - ], - "default": "IDPTYPE_UNSPECIFIED" - }, - "v1IdpUpdate": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - } - } - }, - "v1IdpView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1IdpState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - }, - "provider_type": { - "$ref": "#/definitions/v1IdpProviderType" - }, - "oidc_config": { - "$ref": "#/definitions/v1OidcIdpConfigView" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1InitialMailRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - } - } - }, - "v1LocalizedMessage": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "localized_message": { - "type": "string" - } - } - }, - "v1LoginPolicy": { - "type": "object", - "properties": { - "allow_username_password": { - "type": "boolean" - }, - "allow_register": { - "type": "boolean" - }, - "allow_external_idp": { - "type": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "force_mfa": { - "type": "boolean" - } - } - }, - "v1LoginPolicyRequest": { - "type": "object", - "properties": { - "allow_username_password": { - "type": "boolean" - }, - "allow_register": { - "type": "boolean" - }, - "allow_external_idp": { - "type": "boolean" - }, - "force_mfa": { - "type": "boolean" - } - } - }, - "v1LoginPolicyView": { - "type": "object", - "properties": { - "default": { - "type": "boolean" - }, - "allow_username_password": { - "type": "boolean" - }, - "allow_register": { - "type": "boolean" - }, - "allow_external_idp": { - "type": "boolean" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "force_mfa": { - "type": "boolean" - } - } - }, - "v1MFAState": { - "type": "string", - "enum": [ - "MFASTATE_UNSPECIFIED", - "MFASTATE_NOT_READY", - "MFASTATE_READY", - "MFASTATE_REMOVED" - ], - "default": "MFASTATE_UNSPECIFIED" - }, - "v1MachineKeySearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "asc": { - "type": "boolean" - }, - "user_id": { - "type": "string" - } - } - }, - "v1MachineKeySearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MachineKeyView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1MachineKeyType": { - "type": "string", - "enum": [ - "MACHINEKEY_UNSPECIFIED", - "MACHINEKEY_JSON" - ], - "default": "MACHINEKEY_UNSPECIFIED" - }, - "v1MachineKeyView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1MachineKeyType" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "expiration_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1MachineResponse": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "v1MachineView": { - "type": "object", - "properties": { - "last_key_added": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "v1MemberType": { - "type": "string", - "enum": [ - "MEMBERTYPE_UNSPECIFIED", - "MEMBERTYPE_ORGANISATION", - "MEMBERTYPE_PROJECT", - "MEMBERTYPE_PROJECT_GRANT" - ], - "default": "MEMBERTYPE_UNSPECIFIED" - }, - "v1MfaType": { - "type": "string", - "enum": [ - "MFATYPE_UNSPECIFIED", - "MFATYPE_SMS", - "MFATYPE_OTP" - ], - "default": "MFATYPE_UNSPECIFIED" - }, - "v1MultiFactor": { - "type": "object", - "properties": { - "multi_factor": { - "$ref": "#/definitions/v1MultiFactorType" - } - } - }, - "v1MultiFactorType": { - "type": "string", - "enum": [ - "MULTIFACTORTYPE_UNSPECIFIED", - "MULTIFACTORTYPE_U2F_WITH_PIN" - ], - "default": "MULTIFACTORTYPE_UNSPECIFIED" - }, - "v1MultiFactorsResult": { - "type": "object", - "properties": { - "multi_factors": { - "type": "array", - "items": { - "$ref": "#/definitions/v1MultiFactorType" - } - } - } - }, - "v1NotificationType": { - "type": "string", - "enum": [ - "NOTIFICATIONTYPE_EMAIL", - "NOTIFICATIONTYPE_SMS" - ], - "default": "NOTIFICATIONTYPE_EMAIL" - }, - "v1OIDCApplicationCreate": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "response_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCResponseType" - } - }, - "grant_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCGrantType" - } - }, - "application_type": { - "$ref": "#/definitions/v1OIDCApplicationType" - }, - "auth_method_type": { - "$ref": "#/definitions/v1OIDCAuthMethodType" - }, - "post_logout_redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "$ref": "#/definitions/v1OIDCVersion" - }, - "dev_mode": { - "type": "boolean" - }, - "access_token_type": { - "$ref": "#/definitions/v1OIDCTokenType" - }, - "access_token_role_assertion": { - "type": "boolean" - }, - "id_token_role_assertion": { - "type": "boolean" - } - } - }, - "v1OIDCApplicationType": { - "type": "string", - "enum": [ - "OIDCAPPLICATIONTYPE_WEB", - "OIDCAPPLICATIONTYPE_USER_AGENT", - "OIDCAPPLICATIONTYPE_NATIVE" - ], - "default": "OIDCAPPLICATIONTYPE_WEB" - }, - "v1OIDCAuthMethodType": { - "type": "string", - "enum": [ - "OIDCAUTHMETHODTYPE_BASIC", - "OIDCAUTHMETHODTYPE_POST", - "OIDCAUTHMETHODTYPE_NONE" - ], - "default": "OIDCAUTHMETHODTYPE_BASIC" - }, - "v1OIDCConfig": { - "type": "object", - "properties": { - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "response_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCResponseType" - } - }, - "grant_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCGrantType" - } - }, - "application_type": { - "$ref": "#/definitions/v1OIDCApplicationType" - }, - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "auth_method_type": { - "$ref": "#/definitions/v1OIDCAuthMethodType" - }, - "post_logout_redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "version": { - "$ref": "#/definitions/v1OIDCVersion" - }, - "none_compliant": { - "type": "boolean" - }, - "compliance_problems": { - "type": "array", - "items": { - "$ref": "#/definitions/v1LocalizedMessage" - } - }, - "dev_mode": { - "type": "boolean" - }, - "access_token_type": { - "$ref": "#/definitions/v1OIDCTokenType" - }, - "access_token_role_assertion": { - "type": "boolean" - }, - "id_token_role_assertion": { - "type": "boolean" - } - } - }, - "v1OIDCConfigUpdate": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "application_id": { - "type": "string" - }, - "redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "response_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCResponseType" - } - }, - "grant_types": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OIDCGrantType" - } - }, - "application_type": { - "$ref": "#/definitions/v1OIDCApplicationType" - }, - "auth_method_type": { - "$ref": "#/definitions/v1OIDCAuthMethodType" - }, - "post_logout_redirect_uris": { - "type": "array", - "items": { - "type": "string" - } - }, - "dev_mode": { - "type": "boolean" - }, - "access_token_type": { - "$ref": "#/definitions/v1OIDCTokenType" - }, - "access_token_role_assertion": { - "type": "boolean" - }, - "id_token_role_assertion": { - "type": "boolean" - } - } - }, - "v1OIDCGrantType": { - "type": "string", - "enum": [ - "OIDCGRANTTYPE_AUTHORIZATION_CODE", - "OIDCGRANTTYPE_IMPLICIT", - "OIDCGRANTTYPE_REFRESH_TOKEN" - ], - "default": "OIDCGRANTTYPE_AUTHORIZATION_CODE" - }, - "v1OIDCMappingField": { - "type": "string", - "enum": [ - "OIDCMAPPINGFIELD_UNSPECIFIED", - "OIDCMAPPINGFIELD_PREFERRED_USERNAME", - "OIDCMAPPINGFIELD_EMAIL" - ], - "default": "OIDCMAPPINGFIELD_UNSPECIFIED" - }, - "v1OIDCResponseType": { - "type": "string", - "enum": [ - "OIDCRESPONSETYPE_CODE", - "OIDCRESPONSETYPE_ID_TOKEN", - "OIDCRESPONSETYPE_ID_TOKEN_TOKEN" - ], - "default": "OIDCRESPONSETYPE_CODE" - }, - "v1OIDCTokenType": { - "type": "string", - "enum": [ - "OIDCTokenType_Bearer", - "OIDCTokenType_JWT" - ], - "default": "OIDCTokenType_Bearer" - }, - "v1OIDCVersion": { - "type": "string", - "enum": [ - "OIDCV1_0" - ], - "default": "OIDCV1_0" - }, - "v1OidcIdpConfig": { - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1OidcIdpConfigCreate": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "styling_type": { - "$ref": "#/definitions/v1IdpStylingType" - }, - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1OidcIdpConfigUpdate": { - "type": "object", - "properties": { - "idp_id": { - "type": "string" - }, - "client_id": { - "type": "string" - }, - "client_secret": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1OidcIdpConfigView": { - "type": "object", - "properties": { - "client_id": { - "type": "string" - }, - "issuer": { - "type": "string" - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - } - }, - "idp_display_name_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - }, - "username_mapping": { - "$ref": "#/definitions/v1OIDCMappingField" - } - } - }, - "v1Org": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1OrgState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1OrgCreateRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - } - } - }, - "v1OrgDomain": { - "type": "object", - "properties": { - "org_id": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "domain": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "primary": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1OrgDomainSearchKey": { - "type": "string", - "enum": [ - "ORGDOMAINSEARCHKEY_UNSPECIFIED", - "ORGDOMAINSEARCHKEY_DOMAIN" - ], - "default": "ORGDOMAINSEARCHKEY_UNSPECIFIED" - }, - "v1OrgDomainSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1OrgDomainSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1OrgDomainSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OrgDomainSearchQuery" - } - } - } - }, - "v1OrgDomainSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OrgDomainView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1OrgDomainValidationRequest": { - "type": "object", - "properties": { - "domain": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1OrgDomainValidationType" - } - } - }, - "v1OrgDomainValidationResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "url": { - "type": "string" - } - } - }, - "v1OrgDomainValidationType": { - "type": "string", - "enum": [ - "ORGDOMAINVALIDATIONTYPE_UNSPECIFIED", - "ORGDOMAINVALIDATIONTYPE_HTTP", - "ORGDOMAINVALIDATIONTYPE_DNS" - ], - "default": "ORGDOMAINVALIDATIONTYPE_UNSPECIFIED" - }, - "v1OrgDomainView": { - "type": "object", - "properties": { - "org_id": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "domain": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "primary": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "validation_type": { - "$ref": "#/definitions/v1OrgDomainValidationType" - } - } - }, - "v1OrgIamPolicyView": { - "type": "object", - "properties": { - "user_login_must_be_domain": { - "type": "boolean" - }, - "default": { - "type": "boolean" - } - } - }, - "v1OrgMember": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1OrgMemberRoles": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1OrgMemberSearchKey": { - "type": "string", - "enum": [ - "ORGMEMBERSEARCHKEY_UNSPECIFIED", - "ORGMEMBERSEARCHKEY_FIRST_NAME", - "ORGMEMBERSEARCHKEY_LAST_NAME", - "ORGMEMBERSEARCHKEY_EMAIL", - "ORGMEMBERSEARCHKEY_USER_ID" - ], - "default": "ORGMEMBERSEARCHKEY_UNSPECIFIED" - }, - "v1OrgMemberSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1OrgMemberSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1OrgMemberSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OrgMemberSearchQuery" - } - } - } - }, - "v1OrgMemberSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1OrgMemberView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1OrgMemberView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "user_name": { - "type": "string" - }, - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "display_name": { - "type": "string" - } - } - }, - "v1OrgState": { - "type": "string", - "enum": [ - "ORGSTATE_UNSPECIFIED", - "ORGSTATE_ACTIVE", - "ORGSTATE_INACTIVE" - ], - "default": "ORGSTATE_UNSPECIFIED" - }, - "v1OrgView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1OrgState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "name": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1PasswordAgePolicy": { - "type": "object", - "properties": { - "max_age_days": { - "type": "string", - "format": "uint64" - }, - "expire_warn_days": { - "type": "string", - "format": "uint64" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1PasswordAgePolicyRequest": { - "type": "object", - "properties": { - "max_age_days": { - "type": "string", - "format": "uint64" - }, - "expire_warn_days": { - "type": "string", - "format": "uint64" - } - } - }, - "v1PasswordAgePolicyView": { - "type": "object", - "properties": { - "default": { - "type": "boolean" - }, - "max_age_days": { - "type": "string", - "format": "uint64" - }, - "expire_warn_days": { - "type": "string", - "format": "uint64" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1PasswordComplexityPolicy": { - "type": "object", - "properties": { - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_lowercase": { - "type": "boolean" - }, - "has_uppercase": { - "type": "boolean" - }, - "has_number": { - "type": "boolean" - }, - "has_symbol": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1PasswordComplexityPolicyRequest": { - "type": "object", - "properties": { - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_lowercase": { - "type": "boolean" - }, - "has_uppercase": { - "type": "boolean" - }, - "has_number": { - "type": "boolean" - }, - "has_symbol": { - "type": "boolean" - } - } - }, - "v1PasswordComplexityPolicyView": { - "type": "object", - "properties": { - "default": { - "type": "boolean" - }, - "min_length": { - "type": "string", - "format": "uint64" - }, - "has_lowercase": { - "type": "boolean" - }, - "has_uppercase": { - "type": "boolean" - }, - "has_number": { - "type": "boolean" - }, - "has_symbol": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1PasswordLockoutPolicy": { - "type": "object", - "properties": { - "max_attempts": { - "type": "string", - "format": "uint64" - }, - "show_lockout_failure": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1PasswordLockoutPolicyRequest": { - "type": "object", - "properties": { - "max_attempts": { - "type": "string", - "format": "uint64" - }, - "show_lockout_failure": { - "type": "boolean" - } - } - }, - "v1PasswordLockoutPolicyView": { - "type": "object", - "properties": { - "default": { - "type": "boolean" - }, - "max_attempts": { - "type": "string", - "format": "uint64" - }, - "show_lockout_failure": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1PasswordRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "password": { - "type": "string" - } - } - }, - "v1Project": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1ProjectState" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "project_role_assertion": { - "type": "boolean" - }, - "project_role_check": { - "type": "boolean" - } - } - }, - "v1ProjectCreateRequest": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "project_role_assertion": { - "type": "boolean" - }, - "project_role_check": { - "type": "boolean" - } - } - }, - "v1ProjectGrant": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "project_id": { - "type": "string" - }, - "granted_org_id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - }, - "state": { - "$ref": "#/definitions/v1ProjectGrantState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ProjectGrantCreate": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "granted_org_id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectGrantID": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, - "v1ProjectGrantMember": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ProjectGrantMemberAdd": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "grant_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectGrantMemberChange": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "grant_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectGrantMemberRoles": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectGrantMemberSearchKey": { - "type": "string", - "enum": [ - "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED", - "PROJECTGRANTMEMBERSEARCHKEY_FIRST_NAME", - "PROJECTGRANTMEMBERSEARCHKEY_LAST_NAME", - "PROJECTGRANTMEMBERSEARCHKEY_EMAIL", - "PROJECTGRANTMEMBERSEARCHKEY_USER_ID", - "PROJECTGRANTMEMBERSEARCHKEY_USER_NAME" - ], - "default": "PROJECTGRANTMEMBERSEARCHKEY_UNSPECIFIED" - }, - "v1ProjectGrantMemberSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ProjectGrantMemberSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ProjectGrantMemberSearchRequest": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "grant_id": { - "type": "string" - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectGrantMemberSearchQuery" - } - } - } - }, - "v1ProjectGrantMemberSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectGrantMemberView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ProjectGrantMemberView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "display_name": { - "type": "string" - } - } - }, - "v1ProjectGrantSearchKey": { - "type": "string", - "enum": [ - "PROJECTGRANTSEARCHKEY_UNSPECIFIED", - "PROJECTGRANTSEARCHKEY_PROJECT_NAME", - "PROJECTGRANTSEARCHKEY_ROLE_KEY" - ], - "default": "PROJECTGRANTSEARCHKEY_UNSPECIFIED" - }, - "v1ProjectGrantSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ProjectGrantSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ProjectGrantSearchRequest": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectGrantSearchQuery" - } - } - } - }, - "v1ProjectGrantSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectGrantView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ProjectGrantState": { - "type": "string", - "enum": [ - "PROJECTGRANTSTATE_UNSPECIFIED", - "PROJECTGRANTSTATE_ACTIVE", - "PROJECTGRANTSTATE_INACTIVE" - ], - "default": "PROJECTGRANTSTATE_UNSPECIFIED" - }, - "v1ProjectGrantUpdate": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectGrantView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "project_id": { - "type": "string" - }, - "granted_org_id": { - "type": "string" - }, - "granted_org_name": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - }, - "state": { - "$ref": "#/definitions/v1ProjectGrantState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "project_name": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "resource_owner": { - "type": "string" - }, - "resource_owner_name": { - "type": "string" - } - } - }, - "v1ProjectID": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "v1ProjectMember": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ProjectMemberAdd": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectMemberChange": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectMemberRoles": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1ProjectMemberSearchKey": { - "type": "string", - "enum": [ - "PROJECTMEMBERSEARCHKEY_UNSPECIFIED", - "PROJECTMEMBERSEARCHKEY_FIRST_NAME", - "PROJECTMEMBERSEARCHKEY_LAST_NAME", - "PROJECTMEMBERSEARCHKEY_EMAIL", - "PROJECTMEMBERSEARCHKEY_USER_ID", - "PROJECTMEMBERSEARCHKEY_USER_NAME" - ], - "default": "PROJECTMEMBERSEARCHKEY_UNSPECIFIED" - }, - "v1ProjectMemberSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ProjectMemberSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ProjectMemberSearchRequest": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectMemberSearchQuery" - } - } - } - }, - "v1ProjectMemberSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectMemberView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ProjectMemberView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "email": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "display_name": { - "type": "string" - } - } - }, - "v1ProjectRole": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "group": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ProjectRoleAdd": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "group": { - "type": "string" - } - } - }, - "v1ProjectRoleAddBulk": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "project_roles": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectRoleAdd" - } - } - } - }, - "v1ProjectRoleChange": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "group": { - "type": "string" - } - } - }, - "v1ProjectRoleSearchKey": { - "type": "string", - "enum": [ - "PROJECTROLESEARCHKEY_UNSPECIFIED", - "PROJECTROLESEARCHKEY_KEY", - "PROJECTROLESEARCHKEY_DISPLAY_NAME" - ], - "default": "PROJECTROLESEARCHKEY_UNSPECIFIED" - }, - "v1ProjectRoleSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ProjectRoleSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ProjectRoleSearchRequest": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectRoleSearchQuery" - } - } - } - }, - "v1ProjectRoleSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectRoleView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ProjectRoleView": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "key": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "group": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - } - } - }, - "v1ProjectSearchKey": { - "type": "string", - "enum": [ - "PROJECTSEARCHKEY_UNSPECIFIED", - "PROJECTSEARCHKEY_PROJECT_NAME" - ], - "default": "PROJECTSEARCHKEY_UNSPECIFIED" - }, - "v1ProjectSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1ProjectSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1ProjectSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectSearchQuery" - } - } - } - }, - "v1ProjectSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1ProjectView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1ProjectState": { - "type": "string", - "enum": [ - "PROJECTSTATE_UNSPECIFIED", - "PROJECTSTATE_ACTIVE", - "PROJECTSTATE_INACTIVE" - ], - "default": "PROJECTSTATE_UNSPECIFIED" - }, - "v1ProjectUpdateRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "project_role_assertion": { - "type": "boolean" - }, - "project_role_check": { - "type": "boolean" - } - } - }, - "v1ProjectView": { - "type": "object", - "properties": { - "project_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1ProjectState" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "resource_owner": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "project_role_assertion": { - "type": "boolean" - }, - "project_role_check": { - "type": "boolean" - } - } - }, - "v1SearchMethod": { - "type": "string", - "enum": [ - "SEARCHMETHOD_EQUALS", - "SEARCHMETHOD_STARTS_WITH", - "SEARCHMETHOD_CONTAINS", - "SEARCHMETHOD_EQUALS_IGNORE_CASE", - "SEARCHMETHOD_STARTS_WITH_IGNORE_CASE", - "SEARCHMETHOD_CONTAINS_IGNORE_CASE", - "SEARCHMETHOD_NOT_EQUALS", - "SEARCHMETHOD_GREATER_THAN", - "SEARCHMETHOD_LESS_THAN", - "SEARCHMETHOD_IS_ONE_OF", - "SEARCHMETHOD_LIST_CONTAINS" - ], - "default": "SEARCHMETHOD_EQUALS" - }, - "v1SecondFactor": { - "type": "object", - "properties": { - "second_factor": { - "$ref": "#/definitions/v1SecondFactorType" - } - } - }, - "v1SecondFactorType": { - "type": "string", - "enum": [ - "SECONDFACTORTYPE_UNSPECIFIED", - "SECONDFACTORTYPE_OTP", - "SECONDFACTORTYPE_U2F" - ], - "default": "SECONDFACTORTYPE_UNSPECIFIED" - }, - "v1SecondFactorsResult": { - "type": "object", - "properties": { - "second_factors": { - "type": "array", - "items": { - "$ref": "#/definitions/v1SecondFactorType" - } - } - } - }, - "v1SetPasswordNotificationRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/v1NotificationType" - } - } - }, - "v1UniqueUserResponse": { - "type": "object", - "properties": { - "is_unique": { - "type": "boolean" - } - } - }, - "v1UpdateMachineRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - } - } - }, - "v1UpdateUserAddressRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - } - } - }, - "v1UpdateUserEmailRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - } - } - }, - "v1UpdateUserPhoneRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - } - } - }, - "v1UpdateUserProfileRequest": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - } - } - }, - "v1UserAddress": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserAddressView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "country": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "postal_code": { - "type": "string" - }, - "region": { - "type": "string" - }, - "street_address": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserEmail": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserEmailView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "email": { - "type": "string" - }, - "is_email_verified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserGrant": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "org_id": { - "type": "string" - }, - "project_id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - }, - "state": { - "$ref": "#/definitions/v1UserGrantState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "grant_id": { - "type": "string" - } - } - }, - "v1UserGrantCreate": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "project_id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - }, - "grant_id": { - "type": "string" - } - } - }, - "v1UserGrantID": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "id": { - "type": "string" - } - } - }, - "v1UserGrantRemoveBulk": { - "type": "object", - "properties": { - "ids": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1UserGrantSearchKey": { - "type": "string", - "enum": [ - "USERGRANTSEARCHKEY_UNSPECIFIED", - "USERGRANTSEARCHKEY_PROJECT_ID", - "USERGRANTSEARCHKEY_USER_ID", - "USERGRANTSEARCHKEY_ORG_ID", - "USERGRANTSEARCHKEY_ROLE_KEY", - "USERGRANTSEARCHKEY_GRANT_ID", - "USERGRANTSEARCHKEY_USER_NAME", - "USERGRANTSEARCHKEY_FIRST_NAME", - "USERGRANTSEARCHKEY_LAST_NAME", - "USERGRANTSEARCHKEY_EMAIL", - "USERGRANTSEARCHKEY_ORG_NAME", - "USERGRANTSEARCHKEY_ORG_DOMAIN", - "USERGRANTSEARCHKEY_PROJECT_NAME", - "USERGRANTSEARCHKEY_DISPLAY_NAME" - ], - "default": "USERGRANTSEARCHKEY_UNSPECIFIED" - }, - "v1UserGrantSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1UserGrantSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1UserGrantSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserGrantSearchQuery" - } - } - } - }, - "v1UserGrantSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserGrantView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserGrantState": { - "type": "string", - "enum": [ - "USERGRANTSTATE_UNSPECIFIED", - "USERGRANTSTATE_ACTIVE", - "USERGRANTSTATE_INACTIVE" - ], - "default": "USERGRANTSTATE_UNSPECIFIED" - }, - "v1UserGrantUpdate": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "v1UserGrantView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "org_id": { - "type": "string" - }, - "project_id": { - "type": "string" - }, - "role_keys": { - "type": "array", - "items": { - "type": "string" - } - }, - "state": { - "$ref": "#/definitions/v1UserGrantState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "user_name": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "email": { - "type": "string" - }, - "org_name": { - "type": "string" - }, - "org_domain": { - "type": "string" - }, - "project_name": { - "type": "string" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "resource_owner": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "grant_id": { - "type": "string" - } - } - }, - "v1UserID": { - "type": "object", - "properties": { - "id": { - "type": "string" - } - } - }, - "v1UserMembershipSearchKey": { - "type": "string", - "enum": [ - "USERMEMBERSHIPSEARCHKEY_UNSPECIFIED", - "USERMEMBERSHIPSEARCHKEY_TYPE", - "USERMEMBERSHIPSEARCHKEY_OBJECT_ID" - ], - "default": "USERMEMBERSHIPSEARCHKEY_UNSPECIFIED" - }, - "v1UserMembershipSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1UserMembershipSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1UserMembershipSearchRequest": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserMembershipSearchQuery" - } - } - } - }, - "v1UserMembershipSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserMembershipView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserMembershipView": { - "type": "object", - "properties": { - "user_id": { - "type": "string" - }, - "member_type": { - "$ref": "#/definitions/v1MemberType" - }, - "aggregate_id": { - "type": "string" - }, - "object_id": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "display_name": { - "type": "string" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "resource_owner": { - "type": "string" - } - } - }, - "v1UserMultiFactor": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/v1MfaType" - }, - "state": { - "$ref": "#/definitions/v1MFAState" - } - } - }, - "v1UserMultiFactors": { - "type": "object", - "properties": { - "mfas": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserMultiFactor" - } - } - } - }, - "v1UserPhone": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserPhoneView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "is_phone_verified": { - "type": "boolean" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserProfile": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserProfileView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "first_name": { - "type": "string" - }, - "last_name": { - "type": "string" - }, - "nick_name": { - "type": "string" - }, - "display_name": { - "type": "string" - }, - "preferred_language": { - "type": "string" - }, - "gender": { - "$ref": "#/definitions/v1Gender" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "login_names": { - "type": "array", - "items": { - "type": "string" - } - }, - "preferred_login_name": { - "type": "string" - } - } - }, - "v1UserResponse": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1UserState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "user_name": { - "type": "string" - }, - "human": { - "$ref": "#/definitions/v1HumanResponse" - }, - "machine": { - "$ref": "#/definitions/v1MachineResponse" - } - } - }, - "v1UserSearchKey": { - "type": "string", - "enum": [ - "USERSEARCHKEY_UNSPECIFIED", - "USERSEARCHKEY_USER_NAME", - "USERSEARCHKEY_FIRST_NAME", - "USERSEARCHKEY_LAST_NAME", - "USERSEARCHKEY_NICK_NAME", - "USERSEARCHKEY_DISPLAY_NAME", - "USERSEARCHKEY_EMAIL", - "USERSEARCHKEY_STATE", - "USERSEARCHKEY_TYPE" - ], - "default": "USERSEARCHKEY_UNSPECIFIED" - }, - "v1UserSearchQuery": { - "type": "object", - "properties": { - "key": { - "$ref": "#/definitions/v1UserSearchKey" - }, - "method": { - "$ref": "#/definitions/v1SearchMethod" - }, - "value": { - "type": "string" - } - } - }, - "v1UserSearchRequest": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "sorting_column": { - "$ref": "#/definitions/v1UserSearchKey" - }, - "asc": { - "type": "boolean" - }, - "queries": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserSearchQuery" - } - } - } - }, - "v1UserSearchResponse": { - "type": "object", - "properties": { - "offset": { - "type": "string", - "format": "uint64" - }, - "limit": { - "type": "string", - "format": "uint64" - }, - "total_result": { - "type": "string", - "format": "uint64" - }, - "result": { - "type": "array", - "items": { - "$ref": "#/definitions/v1UserView" - } - }, - "processed_sequence": { - "type": "string", - "format": "uint64" - }, - "view_timestamp": { - "type": "string", - "format": "date-time" - } - } - }, - "v1UserState": { - "type": "string", - "enum": [ - "USERSTATE_UNSPECIFIED", - "USERSTATE_ACTIVE", - "USERSTATE_INACTIVE", - "USERSTATE_DELETED", - "USERSTATE_LOCKED", - "USERSTATE_SUSPEND", - "USERSTATE_INITIAL" - ], - "default": "USERSTATE_UNSPECIFIED" - }, - "v1UserView": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/v1UserState" - }, - "creation_date": { - "type": "string", - "format": "date-time" - }, - "change_date": { - "type": "string", - "format": "date-time" - }, - "sequence": { - "type": "string", - "format": "uint64" - }, - "login_names": { - "type": "array", - "items": { - "type": "string" - } - }, - "preferred_login_name": { - "type": "string" - }, - "last_login": { - "type": "string", - "format": "date-time" - }, - "resource_owner": { - "type": "string" - }, - "user_name": { - "type": "string" - }, - "human": { - "$ref": "#/definitions/v1HumanView" - }, - "machine": { - "$ref": "#/definitions/v1MachineView" - } - } - }, - "v1ValidateOrgDomainRequest": { - "type": "object", - "properties": { - "domain": { - "type": "string" - } - } - }, - "v1ZitadelDocs": { - "type": "object", - "properties": { - "issuer": { - "type": "string" - }, - "discovery_endpoint": { - "type": "string" - } - } - } - } -} diff --git a/pkg/grpc/message/message.pb.go b/pkg/grpc/message/message.pb.go deleted file mode 100644 index ad2c816340..0000000000 --- a/pkg/grpc/message/message.pb.go +++ /dev/null @@ -1,232 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.25.0 -// protoc v3.13.0 -// source: message.proto - -package message - -import ( - proto "github.com/golang/protobuf/proto" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// This is a compile-time assertion that a sufficiently up-to-date version -// of the legacy proto package is being used. -const _ = proto.ProtoPackageIsVersion4 - -type ErrorDetail struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` -} - -func (x *ErrorDetail) Reset() { - *x = ErrorDetail{} - if protoimpl.UnsafeEnabled { - mi := &file_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ErrorDetail) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ErrorDetail) ProtoMessage() {} - -func (x *ErrorDetail) ProtoReflect() protoreflect.Message { - mi := &file_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ErrorDetail.ProtoReflect.Descriptor instead. -func (*ErrorDetail) Descriptor() ([]byte, []int) { - return file_message_proto_rawDescGZIP(), []int{0} -} - -func (x *ErrorDetail) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *ErrorDetail) GetMessage() string { - if x != nil { - return x.Message - } - return "" -} - -type LocalizedMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - LocalizedMessage string `protobuf:"bytes,2,opt,name=localized_message,json=localizedMessage,proto3" json:"localized_message,omitempty"` -} - -func (x *LocalizedMessage) Reset() { - *x = LocalizedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_message_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LocalizedMessage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LocalizedMessage) ProtoMessage() {} - -func (x *LocalizedMessage) ProtoReflect() protoreflect.Message { - mi := &file_message_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LocalizedMessage.ProtoReflect.Descriptor instead. -func (*LocalizedMessage) Descriptor() ([]byte, []int) { - return file_message_proto_rawDescGZIP(), []int{1} -} - -func (x *LocalizedMessage) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *LocalizedMessage) GetLocalizedMessage() string { - if x != nil { - return x.LocalizedMessage - } - return "" -} - -var File_message_proto protoreflect.FileDescriptor - -var file_message_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x13, 0x63, 0x61, 0x6f, 0x73, 0x2e, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x22, 0x37, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x51, 0x0a, - 0x10, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x2b, 0x0a, 0x11, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, - 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x42, 0x2a, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, - 0x61, 0x6f, 0x73, 0x2f, 0x7a, 0x69, 0x74, 0x61, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x67, 0x72, 0x70, 0x63, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_message_proto_rawDescOnce sync.Once - file_message_proto_rawDescData = file_message_proto_rawDesc -) - -func file_message_proto_rawDescGZIP() []byte { - file_message_proto_rawDescOnce.Do(func() { - file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData) - }) - return file_message_proto_rawDescData -} - -var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_message_proto_goTypes = []interface{}{ - (*ErrorDetail)(nil), // 0: caos.zitadel.api.v1.ErrorDetail - (*LocalizedMessage)(nil), // 1: caos.zitadel.api.v1.LocalizedMessage -} -var file_message_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_message_proto_init() } -func file_message_proto_init() { - if File_message_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorDetail); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LocalizedMessage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_message_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_message_proto_goTypes, - DependencyIndexes: file_message_proto_depIdxs, - MessageInfos: file_message_proto_msgTypes, - }.Build() - File_message_proto = out.File - file_message_proto_rawDesc = nil - file_message_proto_goTypes = nil - file_message_proto_depIdxs = nil -}